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 GetContent(ContentSource source) method to UIComponent<TOwner> #239

Closed
YevgeniyShunevych opened this issue Feb 24, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

YevgeniyShunevych commented Feb 24, 2019

Add method to UIComponent<TOwner>:

public DataProvider<string, TOwner> GetContent(ContentSource source);

Usage

Go.To<SomePage>().
    SomeControl.GetContent(ContentSource.ChildTextNodes).Should.Equal("some value");
string content = Go.To<SomePage>().
    SomeControl.GetContent(ContentSource.FirstChildTextNode);
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