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.

How to use customized java scripts for testing

ligangligang Members
edited November -1 in Sahi - Open Source
Before sahi, I used selenium for web testing, selenium is easy to use customized java scripts during startup the selenium server with userextension parameter.

I briefly took a look at sahi documents, but no lucky.

Anyone can help ?

Thanks

Comments

  • narayannarayan Administrators
    Hi ligang,

    You can specify customized javascript using browser functions: http://sahi.co.in/w/sahi-script-and-javascript

    Could you specify what you wish to use custom functions for? Sahi has in built functions for a lot of things that Selenium needs external libraries for. If you have any examples, we can see how it can be done using Sahi.

    Regards,
    Narayan
  • ligangligang Members
    Thanks narayan.

    So far, my app is based on dojo, it seems sahi can't support drag&drop for dojo technology ("viewtopic.php?id=1880").

    Now i want to use robot to simulate the action, but the robot need the coordinate of the object. I didn't find any method to get the coordinate of the elementstub object in sahi java client .

    Any suggestions?
Sign In or Register to comment.