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
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
What are the junits annotation linked with selenium?
How will u write page object models and data driven model.
What are the challenges with selenium ide?
Write the code to double click an element in selenium?
How can we handle pop-ups in rc?
What selenium components do you know?
Explain what is datadriven framework and keyword driven?
How can we fetch the page source in selenium?
How recorded command can be edited in ide?
What’s selenese?
What is the use of get options () method?
Explain what is the main difference between web-driver and rc?
How to perform right click using webdriver?
What are the main advantages of selenium grid?