How do you find element using Java Script?

Answers were Sorted based on User's Feedback



How do you find element using Java Script?..

Answer / grbhniti@yahoo.co.in

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 find element using Java Script?..

Answer / chetan phani.j

By using executeScript()

Is This Answer Correct ?    1 Yes 0 No

How do you find element using Java Script?..

Answer / kaviya

element.getElementsByTagName(tagname)

Is This Answer Correct ?    0 Yes 12 No

Post New Answer

More Selenium Interview Questions

Explain how you can switch between frames?

0 Answers  


Which automation tools can be used for post-launch validation with continuous integration?

0 Answers  


What is selenium webdriver?

1 Answers  


How to capture screenshot in selenium webdriver?

0 Answers  


What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?

0 Answers  






Mention what is listeners in selenium webdriver?

0 Answers  


its urgent, am trying for jobs. can anyone tell me please in corporate environment , how do we generate reports using selenium? is it default report or xslt report or custom report?? its very urgent.. thanks in advance

2 Answers  


Which are the browsers supported by selenium rc?

0 Answers  


what are the Dynamic elements in web Application?

2 Answers   Eton, HCL,


What is the price of selenium license per server?

0 Answers  


Tell me how you can find broken images in a page using selenium web driver?

0 Answers  


Is webelement an interface or a class?

0 Answers  


Categories