appium / java-client

Java language binding for writing Appium Tests, conforms to W3C WebDriver Protocol
Apache License 2.0
1.2k stars 755 forks source link

[Feat]: #1976

Closed venkatprassu closed 8 months ago

venkatprassu commented 1 year ago

How search records in android automation testing without using mobile keyboard? i am using this scripts public void clickOnSearchOption(){ wait.until(ExpectedConditions.visibilityOf(jsalocators.searchDescription)); jsalocators.searchDescription.click(); jsalocators.searchDescription.sendKeys("Description"); DriverClass.getDriver().pressKey(new KeyEvent(AndroidKey.SEARCH));

}

But it is not working fine it running fine but display all records along with search name(Description), I think search is not working or enter button is not click. how to avoid this problem? please suggest?

ashwithpoojary98 commented 12 months ago

@venkatprassu try to find any locator available for the search button. If not then jsalocators.searchDescription.sendKeys("Description"+Keys.Enter); try this

valfirst commented 8 months ago

@venkatprassu please use Discussions to ask questions