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
Do you know a way to refresh the browser by using selenium?
Tell us what kind of keyboard operations can be performed in selenium?
What is a keyword driven framework?
What is the firefoxdriver, class or an interface? And which interface does it implement?
Just how much does selenium license cost per customer device?
Explain how to assert text of webpage using selenium 2.0?
What is difference between assert and verify commands?
How to check if an element is visible on the web page?
What is webdriver wait in selenium webdriver?
What are the different types of web controller APIs supported in Selenium?
What are some disadvantages of Selenium automation?
Name an api used for reading and writing data to excel files?
What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?
Do you know a way to refresh browser by using selenium?
How to mouse hover an element in selenium?