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
{{ message }}
Repository navigation
Get individual elements from the screen from Model #4
It would be great to retrieve an element from the screen based on a model property, for example:
var elem = _homePage.GetElementByModelProperty(m => m.MyField);
This would prevent the need for knowing how that field was rendered to the screen when checking it.
If you look in the PageReader class we hae a CheckBoxValue method. It
returns a bool. It would probably be better if it returned a collection of
bool, don't you think? An array perhaps? The RadioButton is presumably not
multiple select so could be implemented the same as the current
CheckBoxValue.
Activity
robdmoore commentedon Jan 2, 2013
Cool idea!
What would you expect it to return if the field in the model translated to say, a list of radio buttons or checkboxes?
robdmoore commentedon Jan 3, 2013
@mwhelan Should we add in something that returns a list of elements for a radio/checkbox list?
mwhelan commentedon Jan 3, 2013
Hi Rob
If you look in the PageReader class we hae a CheckBoxValue method. It
returns a bool. It would probably be better if it returned a collection of
bool, don't you think? An array perhaps? The RadioButton is presumably not
multiple select so could be implemented the same as the current
CheckBoxValue.
What do you think of that?
Cheers
Michael
On Thu, Jan 3, 2013 at 6:41 AM, Robert Moore notifications@github.comwrote:
robdmoore commentedon Dec 20, 2013
I think that this mostly exists in Seleno now with the HTML control stuff and as soon as we resolve #133 then we will have even better support.
Thus, I'm closing this.