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 what you know about selenium?
Explain Cucumeber Framework?
While using click command can you use screen coordinate?
Is selenium server needed to run selenium webdriver scripts?
Tell us can captcha and bar code reader be automated by using selenium?
What is same origin policy and how it can be handled?
How to check if a text is highlighted on the page ?
What exactly is the price of selenium test-suite?
How to handle the AJAX popup window?
How is selenium different from qtp?
What do you know about Selenium IDE?
What is the selenium webdriver?
What are different types of locators?
What are desiredcapabilities in selenium webdriver?
How to handle dropdowns in selenium?