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.

about Sahi.prototype ?

NumenHaoNumenHao Members
edited April 2014 in Sahi Pro
Hi, I try to extend the sahi api and just write a js module.
I can use Sahi.prototype["_link"]("sign in") to get the accessor. but when I want to click the link. the code (as below) does not work, why?
Sahi.prototype["_click"](linkobj) ;

thank you.

Answers

  • No one knows? I need your help ,thank you very much.
  • and I directly run a sahi script with contents as below, but it's not work,why?

    Sahi.prototype["_click"](_link("Sign in"));

    _sahi._click(_link("Sign in"));
  • typeof Sahi.prototype["_click"]

    the code above is return undefined, why ?

  • in action.js Sahi.prototype._click=function(a,b) has defined the _click, but why typeof Sahi.prototype["_click"] is return undefined?
Sign In or Register to comment.