You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theGiven 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 astring GetText();
method that gets called inSeleniumPage.cs
in thepublic override string GetElementText(IWebElement element)
method.What do you think about this approach?
Thank you.
The text was updated successfully, but these errors were encountered: