const url = 'http://foo:8000' module.exports = { "The spans have the correct class": function (browser) { let spans = ['#foo', '#bar', '#a', '#really', '#long', '#list'] browser .url(url) // this obviously doesn't work spans.forEach(function (span) { .waitForElementVisible(span, timeout) .assert.cssClassPresent(span, "active"); }); };