Hi ,
my sendkey code is not sending data
Code:
WebElement pwd=driver.findElement(By.xpath("//android.widget.EditText[@text=‘Password’]"));
t.tap(tapOptions().withElement(element(pwd))).perform();
driver.findElement(By.xpath("//android.widget.EditText[@text='Password']")).sendKeys("abc123");
Error:
Exception in thread “main” org.openqa.selenium.InvalidElementStateException: Cannot set the element to ‘abc123’. Did you interact with the correct element?