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 different exceptions you got when working with webdriver?

0 Answers  


What is the use of logging in automation?

0 Answers  


Explain how you can login into any site if it’s showing any authentication popup for password and username?

0 Answers  


What are the regular expression patterns available in selenium?

0 Answers  


What is selenium? What are different selenium components?

0 Answers  


Tell us how many exceptions do you know in selenium webdriver?

0 Answers  


How you are integrating cucumber feature files with step files?

0 Answers  


What is a relative xpath?

0 Answers  


How will you verify the specific position of an web element

0 Answers  


How does one capture a page title in selenium 2.0?

0 Answers  


How to check a Selenium checkbox?

0 Answers  


Write a code snippet to perform mouse hover in webdriver.

0 Answers  


Categories