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.
Easy coding question
Hey, sahi is working great now that I have figured out a bit how to use it, besides the few times when it says "(document.domain has not been set) to get property Window._sahi".
But anyway, this code I wrote seems to always end up on Google, despite the fact that it should be returning the IF condition as False...
_navigateTo("facebook");
if (_containsText((_link("My Yahoo!")), "fefef")) {
_navigateTo("google");
}
else {
_navigateTo("packers");
}
Because facebook clearly does not contain the link or the text specified...
PS my link texts arent actually "facebook" and "packers", its just that the forum wont allow me to post links
Thanks!
But anyway, this code I wrote seems to always end up on Google, despite the fact that it should be returning the IF condition as False...
_navigateTo("facebook");
if (_containsText((_link("My Yahoo!")), "fefef")) {
_navigateTo("google");
}
else {
_navigateTo("packers");
}
Because facebook clearly does not contain the link or the text specified...
PS my link texts arent actually "facebook" and "packers", its just that the forum wont allow me to post links
Thanks!