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 kind of mouse actions can be performed in selenium?
What is the difference between the commit and verify commands?
Which are the operating systems supported by selenium?
Do you know any alternative test automation tools for selenium?
Explain using webdriver how you can perform double click?
What programming languages are you able to use in selenium rc?
Explain what is selenium ide?
How to select a value in a dropdown?
How to click on a hyperlink using selenium webdriver?
What is the difference between “type” and “typeandwait” command?
Disadvantages of Hybrid Framework?
List some of the test types that are supported by selenium.
What is the use of context menu in selenium ide?
What programming languages can you use in selenium rc?
While using click command can you use screen coordinate?