Skip to main content

You are here

List WebElement

List all the options in a menu

The following loads a website then prints off the text on the links in the main menu. This is a very simple code. Its actually not of very much use except it can be adapted to Assert if certain menu links exist. I am re-writting it to check for the presence of designated menu options. For example to check if the menu contains "Home" or "Forums". Watch out for that next.

Tags: 

Premium Drupal Themes by Adaptivethemes