How can we get text from a Web Part?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
How to write selenium code for purchasing product from amazon
Explain what are the different types of locators in selenium?
What is the use of logging in automation?
How to capture screenshot in webdriver?
What are the steps to run automation using selenium?
How to fetch the current page url in selenium?
How to enforce the title of the website?
What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?
Explain how you will login into any site if it is showing any authentication popup for username and password?
Mention what are the types of listeners in testng?
How to set the size of browser window using selenium?
How can we fetch the page source in selenium?