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 ? | 12 Yes | 0 No |
How are web-based pop-ups handled in selenium?
Can WebDriver test mobile applications?
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?
My application uses ajax heavily how do I use selenium rc to work with ajax operations?
How do you get all the values from Drop Down list?
How to type text in a textbox using selenium?
How can we create a data-driven framework using testng?
What will be the limits of selenium?
What do we mean by selenium 1 and selenium 2?
How to launch a browser using selenium webdriver?
What is the alternative to driver.get() method to open an url using selenium webdriver?
Why should testers opt for selenium and not qtp?