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
Tell me do you know a way to refresh browser by using selenium?
How to insert a start point in selenium ide?
Explain how you can debug the tests in selenium ide?
What is same origin policy? How you can avoid same origin policy?
For database testing in selenium webdriver what api is required?
What is framework and what are the frameworks available in rc?
Explain Cucumeber Framework?
What are the different components of selenium?
What is testng assert and list out some common assertions supported by testng?
List some advantages of test automation?
What exactly is selenium remote-control (rc) tool?
Can captcha and bar code reader be automated by using selenium?
What are the advantages of page object model framework?
How to get a text of a web element?
How you build object repository in your project?