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 many test cases you have automated per day?

0 Answers  


Tell me what is a hub in selenium grid?

0 Answers  


What is the difference between setspeed() and sleep() methods?

0 Answers  


Have you used any crossbrowsertesting tool to run selenium scripts on cloud?

0 Answers  


How to developer selenium test cases?

0 Answers  


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

0 Answers  


What is the difference between captureentirepagescreenshot and capturescreenshot?

0 Answers  


How to perform double click action in selenium webdriver?

0 Answers  


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

0 Answers  


What are the advantages of the automation structure?

0 Answers  


How to locate a link using its text in selenium?

0 Answers  


How to connect a database in selenium?

0 Answers  


Categories