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 ClickAndGo method to Control<TOwner> #159

Closed
YevgeniyShunevych opened this issue Mar 20, 2018 · 0 comments
Closed

Add ClickAndGo method to Control<TOwner> #159

YevgeniyShunevych opened this issue Mar 20, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

Add method to Control<TOwner>:

public TNavigateTo ClickAndGo<TNavigateTo>(TNavigateTo navigateToPageObject = null, bool? temporarily = null)
    where TNavigateTo : PageObject<TNavigateTo>;

It applies to all controls including Button and Link.

Usage

Go.To<SomePage>().
    SomeButton.ClickAndGo<AnotherPage>();
Go.To<SomePage>().
    SomeButton.ClickAndGo(new AnotherPage("some parameter"));
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