How can we get text from a Web Part?

Answers were Sorted based on User's Feedback



How can we get text from a Web Part?..

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 can we get text from a Web Part?..

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

Post New Answer

More Selenium Interview Questions

What are the types of assertions there in selenium?

0 Answers  


Write a code snippet to navigate back and forward in browser history?

0 Answers  


What is page object model or pom?

0 Answers  


How to check if a text is highlighted on the page ?

0 Answers  


What is the main difference between web-driver and rc?

0 Answers  






Is there a way for me to know all available options when I start selenium server?

0 Answers  


How can we move to nth child element using css selector?

0 Answers  


What exactly is the price of selenium test-suite?

0 Answers  


How you will login into any site if it is showing any authentication popup for username and password?

0 Answers  


What is implicit wait in selenium webdriver?

0 Answers  


Can captcha be automated?

0 Answers  


What are the advantages and disadvantages of selenium over other testing tools like qtp and testcomplete?

0 Answers  


Categories