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 different exceptions you got when working with webdriver?
What is the use of logging in automation?
Explain how you can login into any site if it’s showing any authentication popup for password and username?
What are the regular expression patterns available in selenium?
What is selenium? What are different selenium components?
Tell us how many exceptions do you know in selenium webdriver?
How you are integrating cucumber feature files with step files?
What is a relative xpath?
How will you verify the specific position of an web element
How does one capture a page title in selenium 2.0?
How to check a Selenium checkbox?
Write a code snippet to perform mouse hover in webdriver.