Answer Posted / grbhniti@yahoo.co.in
Hi,
By using javascriptexecutor we can perform tasks as below
I am entering text in textbox by passing ID.
JavascriptExecutor js= (JavascriptExecutor)driver;
js.executeScript("document.getElementById('vfb-9').value='Ramchandra Patil'");
| Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
How to export selenium ide test suite to selenium rc suites?
Write the code for reading and writing to excel through selenium?
How do perform drag and drop using selenium webdriver?
How can we clear a text written in a textbox?
How to assert the title of the web page?
What is the alternative to driver.get() method to open an url using selenium webdriver?
How selenium grid hub keeps in touch with rc slave machine?
What can cause a selenium ide test to fail?
What is page object model or pom?
What are the advantages of pom?
How does testng allow you to state dependencies? Explain it with an example.
How is assert command different from verify command?
What is webdriverbackedselenium?
What is the hybrid framework?
How can we deal with web-based pop-up?