Skip to content

React Native android apps - driver.findElementByTagName("tagName") did not work with latest appium server and java client #11212

@appiumautouser

Description

@appiumautouser

I am trying to find a text view element on React Native android app using driver.findElementByTagName("") method but having a problem. Referred to the below issue to resolve the problem. #6025

Environment:

  • Appium version: 1.9.0-beta.1
  • Desktop OS/version used to run Appium: Mac OS X 10.12.6
  • Node.js version (unless using Appium.app|exe): 10.9.0
  • Mobile platform/version under test: Android 5.1.1
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe: Appium CLI

I am using Espresso driver capability as below and have provided all the app capabilities.
capabilities.setCapability("automationName", "Espresso");
When I call this method driver.findElementByTagName("") method, getting the below exception.

org.openqa.selenium.InvalidSelectorException: Locator strategy cannot be empty (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 93 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Espressorelating to Espresso driverNeeds Infotypically non-actionable; needs author to respond

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions