Page Assertions

page.assertTitle

Asserts that the page title satisfies the given constraint

page.assertUrl

Asserts that the page URL satisfies the given constraint

page.assertHTML

Asserts that the page content (HTML) satisfies the given constraint

page.assertNodeCount

Asserts that number of elements matching a specified selector satisfies the given constraint

page.assertScroll

Asserts that window scroll offset satisfies the given constraint

page.assertVar

Asserts that variable associated with a given name satisfies the given constraint

Last updated