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.
How to detect an active & inactive GUI-Element in sahi?
Hello,
I ahve several tab sheets in a web-page.Foreach functionality each tab's label or name is activated and appear in bold and its corresponding details are displayed below,and at the same time other tab's heading or names are inactive.
How can i test that in Sahi script?
Thanks in advance.
I ahve several tab sheets in a web-page.Foreach functionality each tab's label or name is activated and appear in bold and its corresponding details are displayed below,and at the same time other tab's heading or names are inactive.
How can i test that in Sahi script?
Thanks in advance.
Comments
Suppose your tab is identified as _div("Tab 1")
On the controller, type _div("Tab 1").className and check what its value is. Check for another tab which is not highlighted and see if the classNames are different.
If they are different, then use _assertEqual("highlightedClassName", _div("Tab 1").className)
my tabs are like this:-
_click(_link("Fare Search[1]"));
_click(_link("Schedule[1]"));
with their heading as their name.
and i am unable to get the class name for them using controller also.