Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

List out the test types that are supported by selenium?

0 Answers  


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

0 Answers  


Mention 5 different exceptions you had in selenium web driver?

0 Answers  


What could be the cause of selenium webdriver test to fail?

0 Answers  


What are different forms of selenium?

0 Answers  


What are the different Exceptions in selenium?

0 Answers  


How does testng allow you to state dependencies?

0 Answers  


Mention what are the types of listeners in testng?

0 Answers  


How can you prepare customized html report using testng in hybrid framework?

0 Answers  


What are the programming languages supported by selenium webdiver?

0 Answers  


What is the difference between the commit and verify commands?

0 Answers  


How to mouse hover an element in selenium?

0 Answers  


Categories