Emna Ayadi
Emna Ayadi

Reputation: 2460

How can i hide keyboard by tapping into the button with yellow circle?

I m using appium with java to automate my tests. I want to know the name of the button that i have circled it in yellow color. How can i hide keyboard by tapping into the button with yellow circle ?

HERE the link for another question, but still have the same problem

enter image description here

Upvotes: 0

Views: 525

Answers (2)

Lasse
Lasse

Reputation: 880

Here's Appium Inspector showing the details of the key:

enter image description here

So here's 2 different examples for hiding the keyboard:

driver.hideKeyboard("Hide keyboard");

driver.findElement(By.xpath("//*[contains(@name, 'Hide keyboard')]").click();

Upvotes: 1

MedAmine.Rihane
MedAmine.Rihane

Reputation: 1213

Can you try to use :

driver.hideKeyboard("Hide keyboard");

Upvotes: 1

Related Questions