Need Help on the Xpath issue with Appium

Any help on the below exception with appium in eclipse:

Exception in thread “main” org.openqa.selenium.WebDriverException: Returned value cannot be converted to WebElement: {stacktrace=NoSuchElementError: An element could not be located on the page using the given search parameters.

We resolved this problem. Xpath is working absolutely fine with appium.

We took the page source, and then we generated the xpath.

Ex: xpath: .driver.findElement.By.xpath("//android.widget.Button[@text=‘Log in’]") this worked well.

Thanks all.

I’m glad you solved your issue, but I suggest to be more specific next time with your question. :slight_smile:

Can you help me with this, How to get text of field error message in Android using appium, since UIAutomator viewer is not capturing the error text.

Any help on this -->Can you help me with this, How to get text of field error message in Android using appium, since UIAutomator viewer is not capturing the error text.

Please open new topic for a new issue.