How to enter values in text box by using Selenium Automation-Android Emulator on Sauce Labs -


While automating an Android emulator on the sauce labs, I can also enter the value "123-456-078 9" in the text box I used the following code;

  // I have also checked the web element. Driver.findElement (By.id ("PatientPhone")) Clear () .; Driver.findElement (By.id ("PatientPhone")) SendKeys ("123-456-0789") .;    

Use Javascript Executioner and set its value to the value of the following code Hope this will work fine.

  JavaScript excl. Exe = (javascript exponent) driver; String query = "$ ('# palettephone'). Etr ('value', '123-456-0789')"; Exe.executeScript (query, "");    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -