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 does testng allow you to state dependencies?
Which is the latest Selenium tool?
what is mutation testing, Difference between system and End to End testing,Give examples of bug having high priority but low severity except spelling mistakes and logo symbol.
What is difference between @factory and @dataprovider annotation?
How to get an attribute value using selenium webdriver?
What is the difference between verify and assert commands?
Does selenium support mobile internet testing?
What is fluent wait in selenium?
List the parameters that one needs to pass in selenium.
How can we check if an element is getting displayed on a web page?
Explain dataproviders in testng ?
How to capture screenshot in selenium webdriver?
What are core extension?
How will you handle working with multiple windows in selenium?
How to hover the mouse on an element?