18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

SahiPro error: Logging exce.....TypeError: Cannot read property 'par..

hishamnhishamn Members
edited November -1 in Sahi - Open Source
I am getting the following error on my code. I was unable to figure out the cause for this.
Logging exception:
_setValue(_textbox("BOset::BOcustomer::Contacts::81F5BF6C-85A3-443E-BECA-7AF17082A26F::first_name", _near(_cell("First Name"))), "tester2583");
TypeError: Cannot read property 'parentNode' of null
TypeError: Cannot read property 'parentNode' of null
at [object Object].getParentNode (http://devblade08-08:8080/_s_/spr/concat.js:3327:20)
at [object Object].getDoc (http://devblade08-08:8080/_s_/spr/concat.js:3871:39)
at [object Object].getDoc (http://devblade08-08:8080/_s_/spr/concat.js:3835:31)
at [object Object].findElementHelper (http://devblade08-08:8080/_s_/spr/concat.js:1986:21)
at [object Object]._textbox (http://devblade08-08:8080/_s_/spr/concat.js:4002:19)
at [object Object]. (eval at (http://devblade08-08:8080/_s_/spr/concat.js:3034:14))
at [object Object].ex (http://devblade08-08:8080/_s_/spr/concat.js:3034:9)
at unknown source
Click for browser script at Oct 31, 2011 11:57:58 AM


My code is :
var $random = _random ( 10000 )
163     var    $firstname = "tester" + $random ;
164     var    $lastname = "tester" + $random  ;
165     
166   _setValue(_textbox("BOset::BOcustomer::Contacts::81F5BF6C-85A3-443E-BECA-7AF17082A26F::first_name", _near(_cell("First Name"))),  $firstname);

Comments

  • I have been having these problems while filling forms on a particular site. Normally i do not see errors like thses.
  • Hi hishamn,

    Can you please check if the UI relation which you are using is correct from the Controller?

    Regards
    Sumitra
  • it seems correct. Unless the controller picked it up wrong. Is there anything else that could have caused this?
  • I tried out another script but for some reason i am unable to fill out forms on the site. I have not observed this failure before. The form is in a popup window. Could that be causing the issue?
  • The new window was causing the issue. I have edited the script and it should work now. Thanks
This discussion has been closed.