This site is in read only mode. Please continue to browse, but replying, likes, and other actions are disabled for now.
1 / 2
Sep 2017

Hi,
I’m about to try to migrate a Appium 1.6.5 + Java-based codeline that has been running with Selendroid for many years. Are there any documents or guidelines that demonstrate best practices for changing locator strategies (what are the proper org.openqa.selenium.By1 strategies? I’m also looking for tips on inspecting elements to determine proper locators (what are the preferred tools).

Thanks in advance
-jason

  • created

    Sep '17
  • last reply

    Oct '17
  • 1

    reply

  • 724

    views

  • 1

    user

  • 2

    likes

  • 9

    links

1 month later

Our team completed the migration to UIAutomator2 and compiled these guidelines for converting our Java Element libraries:

You can use any of these locator strategies:

These locator strategies won’t work:

  • By.name
  • By.linkText, MobileBy.linkText or By.partialLinkText
  • xpaths with @value or @id attributes

Replacement strategies: