Join 500+ Software Testing professionals. Solve problem and get your problem solved. Register Now!

webdriver or appium how to pass enter key to an element

Solved 1 Answers 300 Views Selenium
0 1
I have a scenario where I am trying to click on an element using webdriver. I am using iPhone real device and appium server. Click is not working out. I am planning to send enter key. Can you help me with code to send enter key to an element?

1 Answer

Best answer
import org.openqa.selenium.Keys


the import statement is for Java, for other languages it is maybe a different, for example python: from selenium.webdriver.common.keys import Keys


answered by (151 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.