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 |
List out the test types that are supported by selenium?
How can you fetch an attribute from an element? How to retrieve typed text from a textbox?
Mention 5 different exceptions you had in selenium web driver?
What could be the cause of selenium webdriver test to fail?
What are different forms of selenium?
What are the different Exceptions in selenium?
How does testng allow you to state dependencies?
Mention what are the types of listeners in testng?
How can you prepare customized html report using testng in hybrid framework?
What are the programming languages supported by selenium webdiver?
What is the difference between the commit and verify commands?
How to mouse hover an element in selenium?