I have following situation. once I start a Selenium test, a browser window will be opened. Since I have a bunch of tests and I start them many times every day, I would not let Selenium to open the new browser window on the front of my current browser(where I am working), but on the background, so it wouldn't disturb me. Is it possible?
PS to clarify why I need this - many times in a day, when I working in the current browser and the selenium tests are running, browser windows from Selenium for every test opens just suddenly and I can suddenly close it, type something, etc.
What I have now:
Whether the browser appears over your current browser, or in the background, depends on the driver implementation and changes from browser to browser - it is not dependent on Selenium or Serenity. However I usually run the tests in chrome in headless mode, which removes the issue entirely.
To start with Software Test Automation is an art. Your test bed should be:
@Tests
are executing, it should be free from Manual Intervention.Particularly when your
@Tests
are Selenium based, while test execution is InProgress the Test Environment shouldn't be intervened because:Additionally,
Additionally,
Finally, as per Internet Explorer and Native Events:
Browser Focus:
Conclusion
Always keep the Test Environment seperate from Development Environment and absolutely free from Manual Intervention.