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 do you mean by xpath?
What is XPath? How does it work?
What are the different types of drivers available on Webdriver ?
what is the difference between 2.0 & 3.0
How can I read test data from excels?
When should I use selenium grid?
What you say in regards to the flexibility of selenium test suite?
When should one use selenium grid?
What are different forms of selenium?
Can we use selenium rc to drive tests on two different browsers on one operating system without selenium grid?
What are the prerequisites to run selenium webdriver?
What are the popular programming languages supported by selenium webdriver to write test cases?