enter image description hereI cant click google play store search field
How can i click and sendkeys search field play store.
AndroidDriver driver; @AndroidFindBy(xpath = "//android.widget.EditText[contains(@text,'Uygulama ve oyun arayın']") public AndroidElement searchField; public AndroidElement searchField; public void click_searchField() { searchText.isDisplayed(); searchText.click(); }
Advertisement
Answer
- Make sure your driver is not null.
- Try to find the search field by CSS Like this:
android.widget.EditText[*]
Or
android.widget.EditText[]
Or by Xpath:
//*[@value='Uygulama ve oyun arayın']