Skip to content
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

Open
ricardorlg-yml opened this issue Nov 16, 2022 · 2 comments
Open

Serenity is not able to work with Iframes anymore #2972

ricardorlg-yml opened this issue Nov 16, 2022 · 2 comments

Comments

@ricardorlg-yml
Copy link

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.

Can we make the alertIsDisplayedFor method optional?

@wakaleo
Copy link
Member

wakaleo commented Nov 16, 2022

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.

@ricardorlg
Copy link
Contributor

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.

MHabiib added a commit to MHabiib/serenity-core that referenced this issue Dec 22, 2022
MHabiib added a commit to MHabiib/serenity-core that referenced this issue Dec 22, 2022
wakaleo pushed a commit that referenced this issue Dec 22, 2022
* fixing issue #2972 & #2990

* fixing issue #2972 & #2990
remove unused import

* update timeout using properties
onesubhadip pushed a commit to onesubhadip/serenity-core that referenced this issue Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants