Skip to main content

You are here


Assert if an option exists on a menu

This is kind of a crude method but its worked. This is an extention of the codes shown in the previous post. I mentioned I would re-write the codes to check for the presence of a text or option in a menu.

I have set reference to TestNG on this one. So in addition to the Selenium library, the TestNG library should be referenced as well.

The stepts I have adopted include:


Premium Drupal Themes by Adaptivethemes