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 do you launch ie/chrome browser?
How do you read test data from excels?
Mention why to choose python over java in selenium?
Explain how you can login into any site if it’s showing any authentication popup for password and username?
How to write in a text box using Selenium?
How to check which option in the dropdown is selected?
How to handle frame in webdriver?
How to switch between multiple windows in selenium?
How to export the tests from selenium ide to selenium rc in different languages?
How to perform drag and drop action in selenium webdriver?
What’s selenese?
How many types of waits in selenium?