-
-
Notifications
You must be signed in to change notification settings - Fork 513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serenity is not able to work with Iframes anymore #2972
Comments
We can't make alertIsDisplayedFor() optional, as we never know when an alert will be present. However you could propose a change to check whether you are in an iframe and switch to that instead. |
for now, the only solution was to allow the task screenshots only on failures. I'm not sure if there is an easy way to know if we came from an Iframe, maybe I will just add a property to disable the verification manually, so is the user's decision to disable the Alert verification. |
remove unused import
due to this line, if a switch to frame happens, the driver will switch again to current window, making impossible to follow a complete flow over an iframe, this is because when Serenity takes the screenshot, it tries to switch to the active window again, which removes the previous Iframe switch.
serenity-core/serenity-core/src/main/java/net/serenitybdd/core/photography/WebDriverPhotoLens.java
Line 53 in b6481cb
Can we make the alertIsDisplayedFor method optional?
The text was updated successfully, but these errors were encountered: