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 ToNewWindow and ToNewWindowAsTab methods to Go #680

Closed
YevgeniyShunevych opened this issue Oct 3, 2022 · 0 comments
Closed

Add ToNewWindow and ToNewWindowAsTab methods to Go #680

YevgeniyShunevych opened this issue Oct 3, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Oct 3, 2022

Add methods to Go and AtataNavigator classes:

public static T ToNewWindow<T>(T pageObject = null, string url = null, bool temporarily = false)
    where T : PageObject<T>;

public static T ToNewWindowAsTab<T>(T pageObject = null, string url = null, bool temporarily = false)
    where T : PageObject<T>;

Usage

Go.To<GoTo1Page>();

Go.ToNewWindow<GoTo2Page>()
    .PageUri.AbsolutePath.Should.EndWith("/goto2");

Go.ToPreviousWindow<GoTo1Page>()
    .PageUri.AbsolutePath.Should.EndWith("/goto1");
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