The new method was added to Go and AtataNavigator classes:
public T OnRefreshed<T>()
where T : PageObject<T>;
Continues with the specified page object type with rage refresh. Firstly, checks whether the current AtataContext.PageObject is T, if it is, returns it; otherwise, creates a new instance of T without navigation. Then a page is refreshed. The method is useful in case when you reuse a single test suite driver by tests and want to refresh a page on start of each test to ensure that the page is in clean start state.
The new method was added to
Go
andAtataNavigator
classes:Continues with the specified page object type with rage refresh. Firstly, checks whether the current
AtataContext.PageObject
isT
, if it is, returns it; otherwise, creates a new instance ofT
without navigation. Then a page is refreshed. The method is useful in case when you reuse a single test suite driver by tests and want to refresh a page on start of each test to ensure that the page is in clean start state.Usage