Summary
This PR updates the BasePage with a new method, verifyIsOnPage(AbstractWebElement... element). This new method will wait for the DOM ready state to be complete, check for elements on the page to be displayed, and then return a Boolean status of true if it successfully loaded and found the elements.
Changes
isOnPage() has been deprecated on BasePage and will be cycled out in a later undetermined release.
verifyIsOnPage(AbstractWebElement... element) has been added on BasePage and will be the new method for checking to ensure the user is on the current page.
getAutomationWait() has been added on BasePage. This was necessary in order to provide mocking access to the unit test while also ensuring we do not expose the base driver to page objects.
waitUntilLoaded() has been added on AutomationWait. This method will wait for the dom ready state to be complete prior to returning a Boolean response.
Summary This PR updates the
BasePage
with a new method,verifyIsOnPage(AbstractWebElement... element)
. This new method will wait for the DOM ready state to be complete, check for elements on the page to be displayed, and then return a Boolean status oftrue
if it successfully loaded and found the elements.Changes
isOnPage()
has been deprecated onBasePage
and will be cycled out in a later undetermined release.verifyIsOnPage(AbstractWebElement... element)
has been added onBasePage
and will be the new method for checking to ensure the user is on the current page.getAutomationWait()
has been added onBasePage
. This was necessary in order to provide mocking access to the unit test while also ensuring we do not expose the base driver to page objects.waitUntilLoaded()
has been added onAutomationWait
. This method will wait for the dom ready state to be complete prior to returning aBoolean
response.BasePage
.Closes out #74