Just a bit of background: The program I'm testing is located within another website that requires login credentials. Once logged in, I can access the screen I need to test by typing in the direct link. However, there's an issue where my automated test waits for the first page to fully load (which can take up to 40 seconds) before continuing. I've tried using browser.keys("Escape") but it doesn't seem to work.
Is there a way to use WebdriverIO to simulate pressing the stop button or execute a console command?
Below is a snippet of the code I'm currently using:
// Log into website as user
browser.waitForVisible(Username, timeout)
.setValue(Username, "User")
.setValue(Password, "Password")
.click(LogInButton)
// Switch to test website
.pause(2000)
.keys('Escape')
.url(URL)
Any assistance would be greatly appreciated!