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 what you know about selenium?

969


Explain Cucumeber Framework?

969


While using click command can you use screen coordinate?

1495


Is selenium server needed to run selenium webdriver scripts?

923


Tell us can captcha and bar code reader be automated by using selenium?

924


What is same origin policy and how it can be handled?

954


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

1128


What exactly is the price of selenium test-suite?

868


How to handle the AJAX popup window?

1083


How is selenium different from qtp?

894


What do you know about Selenium IDE?

998


What is the selenium webdriver?

978


What are different types of locators?

890


What are desiredcapabilities in selenium webdriver?

903


How to handle dropdowns in selenium?

1097