This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Testing and the fly likes Selenium  - How to use the verify command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Selenium  - How to use the verify command" Watch "Selenium  - How to use the verify command" New topic
Author

Selenium - How to use the verify command

Ehsan Said
Greenhorn

Joined: Apr 19, 2011
Posts: 3
Hi All

I am writing testing scripts in Java language using Eclipse IDE. When I use assertTrue command no syntax error is displayed. With assertTrue command I have also used the command (import static org.junit.Assert.*). However, when I use the command verifyText or verifyTitle. A syntax error message is displayed and the details say that this method is undefined for this class.

The reason I want to use ‘verify’ command is that it allows to run all the test scipts where as when an assert statement is failed it stops the execution.

Do I need to import any library?

Looking forward to the reply.

Regards
 
jQuery in Action, 2nd edition
 
subject: Selenium - How to use the verify command
 
Similar Threads
Setting the Value of a RadioButton on Load
Deploytool dosn't work Please help
Problem in statrting J2EE server
AssertTrue
MySQL error