Search code examples
javaseleniumappium

How to click search field in play store android appium?


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();
        
    }

Solution

    1. Make sure your driver is not null.
    2. 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']