Tell me how can the user get a text of a web element?

Submitted by: Muhammad
User can retrieve the text of the specified web element by using get command. It doesn't require any parameter but returns a string value.

String Text = driver.findElement(“Some Text”)).getText()
is an example of it.
Submitted by: Muhammad

Read Online Automation Job Interview Questions And Answers