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

What are the advantages of automation framework?

0 Answers  


What is difference between assert and verify commands?

0 Answers  


How to capture bitmaps in selenium?

0 Answers  


What is testng?

0 Answers  


What is fluent wait in selenium webdriver?

0 Answers  


What is heightened privileges browsers?

0 Answers  


What is the command to connect a node to the selenium grid?

0 Answers  


What if you have written your own element locator and how would you test it?

0 Answers  


How to fetch the current page url in selenium?

0 Answers  


List of Exceptions may occur in selenium?

3 Answers   HCL,


What is an explicit wait in selenium?

0 Answers  


How to send alt/shift/control key in selenium webdriver?

0 Answers  


Categories