How do you find element using Java Script?
Answers were Sorted based on User's Feedback
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 ? | 11 Yes | 0 No |
Explain what is the difference between borland silk and selenium?
Explain what is framework and what are the frameworks available in rc?
How to handle a dropdown in selenium webdriver? How to select a value from dropdown?
What is the main difference between web-driver and rc?
What is a data driven framework?
How can you mark a test case as failed by using soft assertion?
How to run test case traced by employing ide in browsers?
Explain xpath absolute and xpath attributes.
How to click on a hyperlink using selenium webdriver?
How to do file upload in selenium?
What is junit annotations and what are different types of annotations which are useful?
what is the difference between driver.get() and driver.navigate.to(“url”)?