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 can we get text from a Web Part?

Answer Posted / uma rani

We can use getText() pre-defined method. It helps to retrieve the text of a specific web element.

String text = driver.findElement(By.id("xxxx")).getText();

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me can selenium handle windows based pop-up?

987


What are the ways to refresh a browser using selenium webdriver?

1025


How to check if a text is highlighted on the page ?

1177


Tell me what you know about selenium?

1024


Tell me how you can capture server side log selenium server?

965


Is it possible to automate the captcha using selenium?

997


How to enter text in the HTML text box without invoking the SendKeys ()?

1073


Tell me why to choose python over java in selenium?

931


What are some disadvantages of Selenium automation?

1234


Explain in selenium ide how can you debug the tests?

940


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

1166


How to run selenium webdriver test from the command line?

1146


How can I learn to automate testing using selenium?

1010


What are the limitations of using selenium as a test tool?

1025


Please explain what are the different types of locators in selenium?

968