testing - How to Handle soft keys like search , enter etc in Appium android -


i using appium (java) automate android app.
i struck in scenario need enter text , press search / enter key soft keyboard.
i tried many solutions , none of them worked.
has tried this?
tried far:

webelement input = driver.findelement(by.id("myid"));         input.sendkeys(value); // value want set input         input.sendkeys(keys.enter);          genericmethods.wait(1000); 

use this:

public void tapenterbuttononkeyboard() {         ((androiddriver) driver).presskeycode(androidkeycode.enter);     } 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -