Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

Why to choose python over java in selenium?

0 Answers  


What is a framework?

1 Answers  


How can it be found if an item is displayed on the screen?

0 Answers  


How can we find the value of different attributes like name, class, the value of an element?

0 Answers  


What must one set within side in order to run a test from the beginning to a certain point within the test?

0 Answers  






Tell me how colors could be handled in selenium webdriver?

0 Answers  


List the different types of drivers in webdriver.

0 Answers  


How to change the url on a webpage using selenium web driver?

0 Answers  


How to select a value from a drop-down?

1 Answers  


What happen if you mix both thread.sleep and webdriver waits in a selenium script?

0 Answers  


What is the syntax of finding elements by id using css selector?

0 Answers  


How to enter text in the HTML text box without invoking the SendKeys ()?

0 Answers  






Categories