Function Reference
All the functions built into Sahi Script, which used to be called Sahi APIs. Use them to find elements, act on them, check results, and work with files, data and logs.
Sahi’s built-in functions are what a Sahi script calls to test an application. They used to be called Sahi APIs. Each function lists the Sahi Pro versions it is available in, the modes it supports, its arguments and its return value.
Sahi’s functions can broadly be classified into three categories.
Accessor functions
Section titled “Accessor functions”Accessor functions find elements in the application, for example _link("Login") or _textbox("user"). For the browser, Sahi injects these functions into the page via the proxy. Start with Accessor Basics.
Action functions
Section titled “Action functions”Action functions act on elements and check them, such as clicking, typing keys and asserting the state of elements. See Action Functions and Assertion Functions.
Other functions
Section titled “Other functions”Other functions handle exceptions, files, Excel sheets, databases, logging, screenshots and more.

