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

How are web-based pop-ups handled in selenium?

0 Answers  


Can WebDriver test mobile applications?

0 Answers  


What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?

0 Answers  


My application uses ajax heavily how do I use selenium rc to work with ajax operations?

0 Answers  


How do you get all the values from Drop Down list?

6 Answers   HCL,


How to type text in a textbox using selenium?

0 Answers  


How can we create a data-driven framework using testng?

0 Answers  


What will be the limits of selenium?

0 Answers  


What do we mean by selenium 1 and selenium 2?

0 Answers  


How to launch a browser using selenium webdriver?

0 Answers  


What is the alternative to driver.get() method to open an url using selenium webdriver?

0 Answers  


Why should testers opt for selenium and not qtp?

0 Answers  


Categories