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 ?    11 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 can you find broken links in a page using selenium webdriver?

0 Answers  


What’s the difference between borland silk evaluation and selenium?

0 Answers  


What are the capabilities of selenium ide?

0 Answers  


Why should Selenium be selected as a testing tool?

0 Answers  


What are the testing type supported by selenium webdriver?

0 Answers  






What is selenium? What are the different selenium components?

0 Answers  


How to perform right click using webdriver?

0 Answers  


Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

0 Answers  


How to switch between frames in selenium?

0 Answers  


How to handle a dropdown in selenium webdriver? How to select a value from dropdown?

0 Answers  


Who is the best faculty for selenium in twin cities (Hyderabad/secundrabad)

2 Answers   KJL, NA,


How can you use the recovery scenario in selenium webdriver?

0 Answers  


Categories