I am using Android emulator to test an application.
I am able to enter text in a text a text field, and trying to enter click enter by following code:
element.sendKeys("Some text");
element.sendKeys(Keys.ENTER); also tried with Keys.RETURN // both of these deleting the text which i entered in the text field rather than clicking enter.
So i tried to simulate this by using Actions class like below:
Actions action=new Actions(driver)
action.sendKeys("Some text").sendKeys(Keys.ENTER).build().perform();//Here i am getting an exception saying it is not yet implemented.
So can anyone help me to provide a solution to the problem.
created
Mar '15
last reply
Feb '19
- 14
replies
- 22.7k
views
- 10
users
- 7
likes
- 2
links