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 get access to className of element?
Hi!
I try to do something like this:
if ( _link("variableDataNextLnk").className != "disabled" ){
_alert("do something");
}
The problem is I always see alert.
But when I do:
_alert( _link("variableDataNextLnk").className );
I see correct className
I try to do something like this:
if ( _link("variableDataNextLnk").className != "disabled" ){
_alert("do something");
}
The problem is I always see alert.
But when I do:
_alert( _link("variableDataNextLnk").className );
I see correct className
Comments
if (_condition(_link("variableDataNextLnk").className != "disabled")){
_alert("do something");
}
Or do
_set($className, _link("variableDataNextLnk").className);
if ( $className != "disabled" ){
_alert("do something");
}