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.
Regex In Popup Name not being recognized when using _condition()
I have a regex in a popup name; the popup is _popup("/Execute.*/")
Actions such as _popup("/Execute.*/)._click(_link("exampleLink")) work perfectly fine.
However, when I try to check for a condition of whether or not something exists in the window, the following exception is thrown:
_sahi.saveCondition("__lastConditionValue__4", _popup("/Execute.*/")._isVisible(_link("exampleLink")))
SahiNotMyWindowException: Window with name [/Execute.*/] not found
No trace available
The line of code generating this error is
while(!_condition(_popup("/Execute.*/")._isVisible(_link("exampleLink")))) {
_wait("500");
}
Actions such as _popup("/Execute.*/)._click(_link("exampleLink")) work perfectly fine.
However, when I try to check for a condition of whether or not something exists in the window, the following exception is thrown:
_sahi.saveCondition("__lastConditionValue__4", _popup("/Execute.*/")._isVisible(_link("exampleLink")))
SahiNotMyWindowException: Window with name [/Execute.*/] not found
No trace available
The line of code generating this error is
while(!_condition(_popup("/Execute.*/")._isVisible(_link("exampleLink")))) {
_wait("500");
}
Comments