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 kind of mouse actions can be performed in selenium?

815


What is the difference between the commit and verify commands?

972


Which are the operating systems supported by selenium?

872


Do you know any alternative test automation tools for selenium?

892


Explain using webdriver how you can perform double click?

830


What programming languages are you able to use in selenium rc?

859


Explain what is selenium ide?

857


How to select a value in a dropdown?

986


How to click on a hyperlink using selenium webdriver?

832


What is the difference between “type” and “typeandwait” command?

1463


Disadvantages of Hybrid Framework?

2824


List some of the test types that are supported by selenium.

792


What is the use of context menu in selenium ide?

895


What programming languages can you use in selenium rc?

914


While using click command can you use screen coordinate?

1429