Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.9k views
in Selenium by
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

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer
import org.openqa.selenium.Keys

WebElement.sendKeys(Keys.RETURN);

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

 


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...