!1 Website testing using !-BrowserTest-! with Storyboard

On this page we compare the year of release of an album on two websites. We use a special version of Slim's !-ScriptTable-!, a storyboard, which will automatically take a screenshot after each action.

The configuration of Selenium (i.e. which browser to use) and starting the browser session is done in the SuiteSetup. Which allows this configuration to be shared between tests. Closing the browser is done in SuiteTearDown, which happens after all tests are completed.

|storyboard                             |browser test                                                    |
|open                                   |https://musicbrainz.org/set-language/en                         |
|enter                                  |Van Morrison      |as  |Search                                  |
|press                                  |enter                                                           |
|click                                  |Van Morrison                                                    |
|check not                              |value of          |Year|in row where|Title|is|Astral Weeks|null |
|$year=                                 |value of          |Year|in row where|Title|is|Astral Weeks      |
|set continue if ready state interactive|true                                                            |
|open                                   |https://www.allmusic.com                                        |
|show                                   |click if available|AGREE                                        |
|show                                   |click if available|id=exco_sticky-x-button                      |
|enter                                  |Van Morrison      |as  |Search                                  |
|press                                  |enter                                                           |
|click                                  |Van Morrison                                                    |
|click                                  |Discography                                                     |
|check                                  |value of          |Year|in row where|Album|is|Astral Weeks|$year|
