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 HaveClass verification extension method #118

Closed
YevgeniyShunevych opened this issue Dec 4, 2017 · 0 comments
Closed

Add HaveClass verification extension method #118

YevgeniyShunevych opened this issue Dec 4, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Dec 4, 2017

public static TOwner HaveClass<TComponent, TOwner>(this IUIComponentVerificationProvider<TComponent, TOwner> should, params string[] classNames)
    where TComponent : UIComponent<TOwner>
    where TOwner : PageObject<TOwner>;

Provides shorter syntax to verify class.

Instead of:

Component.Attributes.Class.Should.Contain("some-class")

use:

Component.Should.HaveClass("some-class")
@YevgeniyShunevych YevgeniyShunevych added this to the 0.16.0 milestone Dec 4, 2017
@YevgeniyShunevych YevgeniyShunevych self-assigned this Dec 4, 2017
@YevgeniyShunevych YevgeniyShunevych changed the title Add ContainClass verification extension method Add HaveClass verification extension method Dec 4, 2017
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