Commit ae384580 authored by Mikael Karon's avatar Mikael Karon

Update XPath returned from `page.getTodoListXpath` to permit classes in addition to `todo-list`

parent 3e8479e9
......@@ -16,7 +16,7 @@ module.exports = function Page(browser) {
};
this.getTodoListXpath = function () {
return !idSelectors ? '//ul[@id="todo-list"]' : '//ul[@class="todo-list"]';
return !idSelectors ? '//ul[@id="todo-list"]' : '//ul[contains(@class, "todo-list")]';
};
this.getMainSectionXpath = function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment