selenium-ide icon indicating copy to clipboard operation
selenium-ide copied to clipboard

Selenium fails if a browser window covers Selenium window

Open BartolomeSintes opened this issue 1 year ago • 5 comments

🐛 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

BartolomeSintes avatar Feb 09 '24 23:02 BartolomeSintes

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 avatar Feb 10 '24 17:02 toddtarsi

@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 avatar Feb 15 '24 01:02 toddtarsi

*98 I mean

toddtarsi avatar Feb 15 '24 01:02 toddtarsi

The problem is still present in alpha 98

BartolomeSintes avatar Feb 15 '24 20:02 BartolomeSintes

@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.

toddtarsi avatar Feb 25 '24 19:02 toddtarsi