Search code examples
automationappiumandroid-tvappium-androidandroid-uiautomator

when i using appium on findElement method,i have element instance,but the element didn't get focus


is the Custom android tv,it can use element instance click() method.

when i using findElement method,it can get element instance,but not focus the element

how can i set the element on focus?

thanks


Solution

  • for images, links, etc:

    new Actions(driver).moveToElement(element).perform();
    

    for input box and etc:

    new Actions(driver).moveToElement(element).click().perform();