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
How can we create object repository in selenium?
Can we edit recorded selenium ide test cases?
List some of the test types that are supported by selenium.
How recorded command can be edited in ide?
Tell me could cookies be deleted in selenium?
How can we clear a text written in a textbox?
What happen if you mix both implicit wait and explicit wait in a selenium script?
what are the testing frameworks used in selenium?
What is selenium 1.0?
What is exception test in selenium?
If one wanted to display the value of a variable named answer in the log file, what would the first argument to the previous command look like?
What are the advantages of page object model framework?
Why to choose python over java in selenium?
Do you know how to debug the tests in selenium ide?
What is the reason to use the selenium grid?