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 do you know a way to refresh browser by using selenium?

974


How to insert a start point in selenium ide?

998


Explain how you can debug the tests in selenium ide?

1007


What is same origin policy? How you can avoid same origin policy?

883


For database testing in selenium webdriver what api is required?

901


What is framework and what are the frameworks available in rc?

993


Explain Cucumeber Framework?

1014


What are the different components of selenium?

1116


What is testng assert and list out some common assertions supported by testng?

961


List some advantages of test automation?

977


What exactly is selenium remote-control (rc) tool?

1098


Can captcha and bar code reader be automated by using selenium?

999


What are the advantages of page object model framework?

960


How to get a text of a web element?

1026


How you build object repository in your project?

1051