Skip to content

Android Chrome browser @AndroidFindBy(xpath="//a[contains(text(),'Continue using')]") not working #616

@vikramvi

Description

@vikramvi

screen shot 2017-04-06 at 2 42 26 pm

Description

I've below locator

    @AndroidFindBy(xpath="//a[contains(text(),'Continue using')]")
    private WebElement gotoMobileWebsiteLink;

but from appium log, I could see finding by xpath call is not being made but instead

[HTTP] --> POST /wd/hub/session/3648600a-1ed2-4a41-9af7-f66fd58d5114/element {"using":"id","value":"gotoMobileWebsiteLink"}

[HTTP] --> POST /wd/hub/session/3648600a-1ed2-4a41-9af7-f66fd58d5114/element {"using":"name","value":"gotoMobileWebsiteLink"}

Environment

  • java client build version or git revision if you use some shapshot: 5.0.0-BETA6
  • Appium server version or git revision if you use some shapshot: 1.6.4-beta
  • Desktop OS/version used to run Appium if necessary: Mac 10.11.6
  • Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: v7.6.0
  • Mobile platform/version under test: Android 6.0.1
  • Real device or emulator/simulator: Real Device

Details

  1. Android device's Chrome browser needs to open a website and do some action
  2. I'm trying to click on a link on outlook default home page, but finding with xpath is not working

Code To Reproduce Issue [ Good To Have ]

NA

Ecxeption stacktraces

NA

Link to Appium logs

https://gist.github.com/vikramvi/4ab168d0fab0fecc08033cd0df351e3d

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions