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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selenium fails if a browser window covers Selenium window #1788

Open
BartolomeSintes opened this issue Feb 9, 2024 · 5 comments
Open

Selenium fails if a browser window covers Selenium window #1788

BartolomeSintes opened this issue Feb 9, 2024 · 5 comments

Comments

@BartolomeSintes
Copy link

BartolomeSintes commented Feb 9, 2024

馃悰 Bug Report

If Selenium is running a test and you change focus into a browser window (Firefox or Chrome) covering the Selenium window, the test fails.

If the browser window is located in another screen, the test does not fail.

To Reproduce

Steps to reproduce the behavior:

  1. Open a full screen Firefox/Chrome window
  2. Open Selenium in the same screen
  3. Open a project
  4. Run a test that usually does not fail.
  5. Change to the Firefox/Chrome window (using ctrl+tab, for instance)
  6. Wait some seconds (you do not need to use the browser)
  7. Change to the Selenium window
  8. Check that the test has failed in one of the steps.

Expected behavior

I would expect the test would continue to the end without failing.

Environment

OS: Windows 10
Selenium IDE Version: 4.0.1 alpha 97
Browser updated Firefox and Chrome

@toddtarsi
Copy link
Contributor

This is a great issue. It actually is the same reason parallel suites are having issues. Electron-chromedriver is kind of being obnoxious in this regard. It will incorrectly mark click actions as succeeded even if they haven't if the focused window changes mid playback 馃槵

@toddtarsi
Copy link
Contributor

@BartolomeSintes - v97 is going out tonight, and does a lot for stability of concurrent playbacks. If you get a chance, give this a shot and lemme know what you think!

@toddtarsi
Copy link
Contributor

*98 I mean

@BartolomeSintes
Copy link
Author

The problem is still present in alpha 98

@toddtarsi
Copy link
Contributor

@BartolomeSintes - Damn, I'm not sure what to do. Maybe I need to make the playback windows always on top when playback is occurring? I think Cypress might do this, maybe something similar is why.

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

2 participants