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

Method screenshot() performs a remove focus action before taking the screenshot #2712

Open
sdragos13 opened this issue Apr 9, 2024 · 2 comments

Comments

@sdragos13
Copy link

The problem

Method Selenide.screenshot() also performs a remove focus action.

Details

When calling method screenshot() I've noticed that is also does a remove focus action before taking the actual screenshot. This can lead to catching different UI elements in mid transition due to the remove focus action, elements like the list of a dropdown that was opened.

Tell us about your environment

  • Selenide Version: 7.1.0
  • Chrome Version: 123.0.6312.106
@sdragos13
Copy link
Author

It seems the issues comes from "selenide-full-screenshot", when running without it the focus is not removed from the element.
Here is with "selenide-full-screenshot":
image

Here is the same, but without "selenide-full-screenshot":
image

@gokulsam07
Copy link

@sdragos13 what do you mean by selenide-full-screenshot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants