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.

Got errror during running Script error. (:)

nv99nv99 Members
edited November -1 in Sahi - Open Source
I got following error during playback.

Script error. (:)
_click(_submit("Search"));
_click(_div("Please enter Keyword or City and State"));
--Stopped Playback: SUCCESS--

Thanks & Regards,
NV

Comments

  • Hello Friends,

    Anybody please help me..

    I got one more problem.. I recorded script using google chrome and tried to play in IE9. I got following errors during playback.. Would anyone please help me.. I got stuck..

    Syntax error (rjdinternational.com/piwik/piwik.js:1)
    _setValue(_textbox("ctl00\$CenterRightPlaceHolder\$ucSearch\$txtJobTitle"), "dental");
    _click(_submit("Search"));
    Syntax error (rjdinternational.com/piwik/piwik.js:1)
    _assertExists(_link("Dental Assistant[1]"));
    _click(_link("View Detail[1]"));
  • fionfion Members
    edited September 2012
    yes, I also get the error, and in test result show yellow, but have no place to trace this error, somebody who can help us to resolve this problem please , thanks.

    Regards,
    Fion
  • On such ocassions I just block comment my whole script, then either divide and conquer (
    while code fails
    uncomment half the code
    let it run
    ok? uncomment half the commented : comment half the uncommented
    until you find the line that fails)
    or increment trace it ( let run a line, when it works uncomment the next line etc)

    got it?
  • narayannarayan Administrators
    Hi nv99,

    This error is coming from your web application and not from Sahi.
    When Sahi encounters any JS errors on a page, it logs it into the playback logs, but continues execution. This error would be in an orange color instead of red, and will not fail the script.

    Check if you get a JS error when navigating the website on a normal browser (you may need to look at the developer tool's error console of your browser)

    Regards,
    Narayan
  • Hello Narayan,

    Thanks for prompt reply.

    You are right there is some error on webpage, when check with development tool it shows some error for the page. But I wondor why it would apper while running and also in Report..

    One more think I would like to ask regarding following query. It would be great if you reply me ASAP.

    =>> I recorded script using google chrome and tried to play in IE9. I got following errors during playback and script is not playback properly (Same scritp works fine in google chorme)..

    Syntax error (rjdinternational.com/piwik/piwik.js:1)
    _setValue(_textbox("ctl00\$CenterRightPlaceHolder\$ucSearch\$txtJobTitle"), "dental");
    _click(_submit("Search"));
    Syntax error (rjdinternational.com/piwik/piwik.js:1)
    _assertExists(_link("Dental Assistant[1]"));
    _click(_link("View Detail[1]"));


    Thanks & Regards,
    NV
Sign In or Register to comment.