How to give input in between the execution? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to give input in between the ...

How to give input in between the execution?


Code Snippet:

Scanner pCloudyScanner = new Scanner(System.in);
System.out.println("Please Enter the searching content");
String search = pCloudyScanner.nextLine();
driver.findElement(By.name("q")).sendKeys(search);

Leave a Reply

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