I am doing automation of the app using appium. I am able to lunch the app but I go for login, it can read the XPath for login. But appium is unable to enter the mobile number. For mobile device, I am using the emulator.
This is my code:
driver.findElement(By.xpath(props.getProperty("mobile"))).sendKeys("123456");
This is my Xpath:
mobile=//android.widget.EditText[@text='Mobile']
Error facing:
Encountered internal error running command: io.appium.uiautomator2.common.exceptions.InvalidElementStateException: Cannot set the element to ‘value’. Did you interact with the correct element?