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
Post a Comment