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
What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?
Other than the default port 4444 how you can run selenium server?
How will you find an element using selenium?
How you can handle colors in web driver?
What are the advantages of selenium as a test tool?
What are the capabilities of selenium webdriver or selenium 2.0?
What is the hybrid framework?
Describe technical problems that you had with selenium tool?
Why to choose python over java in selenium?
How to print Duplicate values in Drop Down List
How is a statement different from verification?
How we handle pop-up web-based ?
Explain me what are the main advantages of selenium?
What are the features of testng and list some of the functionality in testng which makes it more effective?
How to find the xpath of web table elements.in chrome or internet explorer.or without using fire bug.?