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