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 how you can switch back from a frame?
How to find whether an element is displayed on the web page?
i am a 2013 BE and 2015 M.tech passed out.i have taken course in manual testing with selenium automation.i have confident that, i have required technical knowledge in manual as well as automation.now my problem is whether to go as fresher or keep 3 years of experiance.there are very few interviews to call 2013 b.tech and no calls for M.tech...!!is it make any problem, if i keep fake.please let me clear my doubt
How could ajax controls be handled in webdriver?
what are challenges you faced in your last project?
Why do you need session handling while working with selenium?
We do create a reference variable ‘driver’ of type webdriver
Which web driver implementation is fastest?
How to perform right click using selenium webdriver?
Can you use Selenium to test the Rest API or Web services?
Do you know a way to refresh browser by using selenium?
How you can switch between frames?
What are some commonly encountered exceptions in selenium?
Tell me why to choose python over java in selenium?
What are the types of listeners in testng?