Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OnRefreshed navigation method #798

Closed
YevgeniyShunevych opened this issue Dec 5, 2023 · 0 comments
Closed

Add OnRefreshed navigation method #798

YevgeniyShunevych opened this issue Dec 5, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Dec 5, 2023

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.

Usage

Go.OnRefreshed<SomePage>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant