While testing on my computer, I encountered an issue where my test would start successfully, but after opening and closing several Internet Explorer windows during the test, no new windows would open. There were no error messages displayed, and the test seemed to be stuck.
I meticulously checked all the settings based on the information provided in the Selenium Wiki.
Interestingly, when I used the chromedriver to run the same tests in Chrome, everything worked seamlessly.
The snippet of code being executed is as follows:
var { Builder, By, Key, until, Capabilities } = require("selenium-webdriver");
var ieCapabilities = Capabilities.ie();
var driver = await new Builder().withCapabilities(ieCapabilities).build();
await driver.manage().setTimeouts({ implicit: 3000, pageLoad: 3000, script: 3000 })
await driver.manage().window().setRect({ height: this.initialHeight, width: this.initialWidth });
await driver.get("http://localhost/");
// perform the tests
await driver.quit();
This code is part of an ava test setup. To troubleshoot the issue, I temporarily set the concurrency
to 1 and made all tests serial
, however, the problem persisted.
Could someone provide guidance on how to ensure that the test runs smoothly till the end?