kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

SPIKE: Page verification for navigation prior to returning new object? #8

Closed kgress closed 2 years ago

kgress commented 5 years ago

Summary

This ticket is for looking into a way we could verify a page is the correct page we're expecting prior to returning the page object. We could use a generic method under navigation that will check to ensure it's navigated to the right page prior to returning the new object. This could also relate somewhat to ticket #8 .

We could do this by checking for the page header, for example, on that new page. If it throws a NoSuchElementFoundException, we could try to do the navigation again. If failing for several times, throw an error that states the page could not be verified?

We don't want the page verification to be too obstructive so we will need to spend some time thinking about options.

A/C

kgress commented 2 years ago

page verification is already included in BasePage