How to clear text from any texbox using appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to clear text from any texbox ...

How to clear text from any texbox using appium?



//Clear the text using .clear(); method.
driver.findElement(By.name(""q"")).clear();

//Checking is the text is cleared to pass the test.
report.addStep(""Removed the text'"", null, null, takeScreenShot(myContext), ExecutionResult.Pass);

Leave a Reply

Your email address will not be published. Required fields are marked *