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
Explain dataproviders in testng using an example. Can I call a single data provider method for multiple functions and classes?
How is a statement different from verification?
What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?
What are some of the advantages of selenium grid?
In which format does source view show the script in selenium ide?
How to locate a link using its text in selenium?
How would you test your element locator?
What are the different mouse actions that can be performed?
How to retrieve css properties of an element?
What are the different types of frameworks?
How to export selenium ide test suite to selenium rc suites?
What do you mean by selenese?
What are the different types of drivers available in webdriver?
Mention why to choose python over java in selenium?
Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please