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.
Could you provide script for clicking the first link on pop-up page
Could you provide script for clicking the first link on the page of a popup window, if the link is not static (means the links of that webpage keeps on changing on a daily basis.)?
Comments
Please post your script.
Yuo can use _near(); or _under().
Mohit
I have Department link. If i click this link it shows different available departments with link. If click any link, that department gets selected. I want that 1st record(Which will be a link offcourse) should get selected.
Eg: I click department link
i get 4 result in the pop-up
all these 4 result have link to select
I want that whatever the 1st record is should get selected.(Something like select first row)
I want code of script for this.
Thanks
_click(_link("Commodity"));
_click(_link("20400"));
Here, when I click link Commodity it opens up a pop-up with list of Commodities. Now, 20400 is the commodity link mentioned in the first row. I want a script that records the first row item ie, it should click on the link mentioned in the first row even when 20400 is replaced in the first row by some other value. It should click that link instead of 20400.
I hope someone out here has a solution for me to click the first row irrespective of the value shown. The value in the first row will keep changing. So, I want to record a script where it will take the value shown in first row even if the value changes.
Search function is your friend:
http://sahi.co.in/forums/viewtopic.php?id=2549
http://sahi.co.in/forums/viewtopic.php?id=3514
http://sahi.co.in/forums/viewtopic.php?id=2097
http://sahi.co.in/forums/viewtopic.php?id=1837
Regards
Wormi