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.

Getting a JS error while recording a script

RatikaRatika Members
edited January 2014 in Sahi - Open Source
I have done right-click on my website, in order to perform some action which requires to read a JS file, and thus, error came up in the website. Does SAHI support right-clicks?

Comments

  • The exact error which comes up on clicking on a Submit button present in a prompt window is "undefined: Function expected(<path>/<filename>.js)"
  • jkronegg2jkronegg2 Members
    edited February 2014
    Most probably, the Sahi scripts are injected in the file you are trying to read, thus the parsing error.
    I got this kind of errors when parsing XSL files.
    Try adding the file name regexp pattern in userdata/config/exception_inject.txt: this will prevent Sahi to add its scripts.
  • RatikaRatika Members
    I tried the suggested action in exclude_inject fiel, but the URL with such patterns are not getting captured, and thus the issue still persists.
Sign In or Register to comment.