18 January 2026:


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()

qazwsx988qazwsx988 Members
edited November -1 in Sahi - Open Source
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");
}

Comments

  • Hi, I am facing similar issue. I can almost conclude that all browser accessor APIs cannot be used without browser action API. Is it a bug?
Sign In or Register to comment.