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

What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?

1537


Other than the default port 4444 how you can run selenium server?

854


How will you find an element using selenium?

993


How you can handle colors in web driver?

1003


What are the advantages of selenium as a test tool?

913


What are the capabilities of selenium webdriver or selenium 2.0?

908


What is the hybrid framework?

1003


Describe technical problems that you had with selenium tool?

922


Why to choose python over java in selenium?

1059


How to print Duplicate values in Drop Down List

905


How is a statement different from verification?

1025


How we handle pop-up web-based ?

1064


Explain me what are the main advantages of selenium?

851


What are the features of testng and list some of the functionality in testng which makes it more effective?

936


How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?

1602