I want to be able to do a filter InRange for a dynamic property of a pageobject.
internal override ITypeSearch Apply(ITypeSearch query, string key) { return query.Filter(x => ((int)x[key]).InRange(Min, Max)); // Or like this return query.Filter(x => ((int)x.GetType().GetProperty(key).GetValue(x)).InRange(Min, Max)); }
But both don't work. Can I do this another way?
I want to be able to do a filter InRange for a dynamic property of a pageobject.
But both don't work. Can I do this another way?