I use selenium webdriver(s python). I have a use case where I want to check that the submit button is disabled after the form is submitted. To test it, I send a key ESCAPEto stop the page from loading on the next page so that I can access elements of the same page.
password.send_keys("abcdef", Keys.ENTER, Keys.ESCAPE)
The problem is that it works fine in Firefox, but it doesn't work in Chrome. In submitting Chrome, ESCAPEit seems like it is not working, and it submits a form and loads the next page.
Is there any other solution or workaround to overcome this?
source
share