findElementByAccessbilityId

Windows.getDriver().findElementByAccessibilityId("")

What import I have to use for " findElementByAccessibilityId"

Please import:

io.appium.java_client.FindsByAccessibilityId

I import it, but still seeing underline under findElementByAccessibilityid().

import io.appium.java_client.FindsByAccessibilityId
Windows.getDriver().findElementByAccessibilityId(“”)

Please try this:

FindsByAccessibilityId driver = (FindsByAccessibilityId) Windows.getDriver()
driver.findElementByAccessibilityId("")

Thanks, it’s working now.