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 many test cases you have automated per day?
Tell me what is a hub in selenium grid?
What is the difference between setspeed() and sleep() methods?
Have you used any crossbrowsertesting tool to run selenium scripts on cloud?
How to developer selenium test cases?
How to handle a dropdown in selenium webdriver? How to select a value from dropdown?
What is the difference between captureentirepagescreenshot and capturescreenshot?
How to perform double click action in selenium webdriver?
How can you fetch an attribute from an element? How to retrieve typed text from a textbox?
What are the advantages of the automation structure?
How to locate a link using its text in selenium?
How to connect a database in selenium?