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 limitations of selenium ide?

1 Answers  


How will you use selenium to upload a file?

0 Answers  


Explain why to choose python over java in selenium?

0 Answers  


Do you know any alternative test automation tools for selenium?

0 Answers  


How can we get text from a Web Part?

2 Answers  






What are the verification points available in selenium?

0 Answers  


how to Handle dropdown?

2 Answers   Cryptopy Technologies,


List the different types of drivers available in web drivers.

0 Answers  


How do you achieve synchronization in webdriver?

0 Answers  


Explain me what are the main advantages of selenium?

0 Answers  


How can you run selenium server other than the default port 4444?

0 Answers  


What is a node in selenium grid?

0 Answers  


Categories