Forgive a beginners question but, I'm working my way through the Alan Richardson Selenium Simplified book. I've got to an exercise where I'm asked to record an IDE script which should include asserting the page title. The book hasn't covered assert page title; though I've found the command and added to the script. When I export the code as Java/Junit RC and paste into Eclipse, I get the following error:-
The method assertEquals (String, String) is undefined for the type MyFirstSetOfExercises
The first option on clicking the error:
Add static import 'org.junit.Assert.*'
The offending line is:
assertEquals("website - Selenium Simplified Search Engine", selenium.getTitle());
Is there an error in the syntax for the assert command here or do I need to import / point to a different package?
Again, sorry for what is no doubt an obvious problem but anyone who can elaborate would be much appreciated.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/1QGNPQrtPgsJ.
For more options, visit https://groups.google.com/groups/opt_out.
What is the soultion for this error ?
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/hHcM_uFMOJgJ.