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

Explain dataproviders in testng using an example. Can I call a single data provider method for multiple functions and classes?

889


How is a statement different from verification?

999


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

1026


What are some of the advantages of selenium grid?

889


In which format does source view show the script in selenium ide?

896


How to locate a link using its text in selenium?

964


How would you test your element locator?

968


What are the different mouse actions that can be performed?

934


How to retrieve css properties of an element?

948


What are the different types of frameworks?

910


How to export selenium ide test suite to selenium rc suites?

945


What do you mean by selenese?

952


What are the different types of drivers available in webdriver?

934


Mention why to choose python over java in selenium?

873


Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please

1285