18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
retriving web component position(top,left,width,height) using sahi
Hi
anyone pls tell me how to retrive the position of web component on the screen using sahi, in selenium we have functions like getElementHeight() etc. I'm expecting functions in sahi java mode.
Thanks in advance
anyone pls tell me how to retrive the position of web component on the screen using sahi, in selenium we have functions like getElementHeight() etc. I'm expecting functions in sahi java mode.
Thanks in advance
Comments
Try with the following scirpt,
browser.execute("_sahi._alert(_sahi._position(_sahi.web component))");
For eg:
browser.execute("_sahi._alert(_sahi._position(_sahi._button('Add')))");
popup an alert message with an array. The array is the element’s x, y coordinate in pixels.
This might help you.
Regards,
Theeran.