Skip to content Skip to sidebar Skip to footer

Selenium Webdriver On Safari: Keys.enter Not Working

I'm forced to use the Enter key to submit a form in automated testing (the submit button can't be targeted by an automated click event). client.Keys.ENTER works golden in all brows

Solution 1:

The work around is using sendKeys("\n") in a form field in the form that you want to submit. This is equal to hitting the Return key. Another option may be to use submit() in a form field but I am sure the first suggestion works.


Post a Comment for "Selenium Webdriver On Safari: Keys.enter Not Working"