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

How colors could be handled in selenium webdriver?

0 Answers  


Which are the browsers supported by selenium ide?

0 Answers  


Explain xpath.

0 Answers  


Is webelement an interface or a class?

0 Answers  


How can you mark a test case as failed by using soft assertion?

0 Answers  






How to write in a text box using Selenium?

0 Answers  


Which web driver implementation is fastest?

0 Answers  


How do you read data from excel?

0 Answers  


what will be the first salary and what will be the hike in the salary?

0 Answers  


Explain the difference between assert and verify commands?

0 Answers  


What is an explicit wait in selenium?

0 Answers  


Explain what is assertion in selenium and what are the types of assertion?

0 Answers  


Categories