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?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does testng allow you to state dependencies?

975


Which is the latest Selenium tool?

1054


what is mutation testing, Difference between system and End to End testing,Give examples of bug having high priority but low severity except spelling mistakes and logo symbol.

1963


What is difference between @factory and @dataprovider annotation?

1006


How to get an attribute value using selenium webdriver?

1039


What is the difference between verify and assert commands?

1018


Does selenium support mobile internet testing?

946


What is fluent wait in selenium?

984


List the parameters that one needs to pass in selenium.

864


How can we check if an element is getting displayed on a web page?

892


Explain dataproviders in testng ?

934


How to capture screenshot in selenium webdriver?

978


What are core extension?

901


How will you handle working with multiple windows in selenium?

887


How to hover the mouse on an element?

945