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 |
What are the advantages of automation framework?
What is difference between assert and verify commands?
How to capture bitmaps in selenium?
What is testng?
What is fluent wait in selenium webdriver?
What is heightened privileges browsers?
What is the command to connect a node to the selenium grid?
What if you have written your own element locator and how would you test it?
How to fetch the current page url in selenium?
List of Exceptions may occur in selenium?
What is an explicit wait in selenium?
How to send alt/shift/control key in selenium webdriver?