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

Ability to override default behavior for getting the text value of an element on a page. #186

Open
icnocop opened this issue Apr 23, 2019 · 0 comments · May be fixed by #204
Open

Ability to override default behavior for getting the text value of an element on a page. #186

icnocop opened this issue Apr 23, 2019 · 0 comments · May be fixed by #204

Comments

@icnocop
Copy link
Contributor

icnocop commented Apr 23, 2019

Hi.

I have a custom control that I can extend with the IDataControl interface to override the default behavior for setting the value on the control, used when calling the Given I entered data step.

I'd like the ability to override the default behavior for getting the text value of an element on a page in a similar way when calling the Given I saw step.

One option is to extend IDataControl with a string GetText(); method that gets called in SeleniumPage.cs in the public override string GetElementText(IWebElement element) method.

What do you think about this approach?

Thank you.

@icnocop icnocop linked a pull request Feb 21, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant