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

How to launch a browser using selenium webdriver?

962


What is the difference between implicit wait and explicit wait?

940


How can we check if an element is enabled for interaction on a web page?

766


How to pause a test execution for 5 seconds at a specific point?

945


What are some commonly encountered exceptions in selenium?

920


What is the difference between selenium and qtp?

832


What are some disadvantages of Selenium automation?

1023


Do you know what are the main advantages of selenium grid?

862


How to handle dropdowns in selenium?

1022


What are the two modes of views in selenium ide?

989


Explain me how many types of webdriver apis are available in selenium?

834


How can we create an object repository in selenium?

939


how can you retrive the message in an alert box?

905


How do perform drag and drop using webdriver?

963


Explain how you can handle frames using selenium 2.0?

822