Hi
In my Silverlight application, I have a RadGridView, where two of the columns have a filter applied. They both show a yellow funnel icon next to their header names. I need a way of being able to verify whether a column has its filter applied or not. Visually, if a column has a filter applied, the funnel icon appears yellow, otherwise white. How would I verify this in a coded step? I don't really want to venture into the realms of image verification, as I've heard this can be quite brittle. There must be another, more robust way.
I have attached a screen shot of the DOM Explorer, showing the elements that make up a column filter on a RadGridView column. Originally, I assumed a column had a filter applied if the ToggleButton (AutomationId="PART_DropDownButton") was on e.g. IsChecked = true, but this is not the case. Can anyone suggest how I can verify if a column has a filter applied from the elements in the attachment?
Many thanks!
In my Silverlight application, I have a RadGridView, where two of the columns have a filter applied. They both show a yellow funnel icon next to their header names. I need a way of being able to verify whether a column has its filter applied or not. Visually, if a column has a filter applied, the funnel icon appears yellow, otherwise white. How would I verify this in a coded step? I don't really want to venture into the realms of image verification, as I've heard this can be quite brittle. There must be another, more robust way.
I have attached a screen shot of the DOM Explorer, showing the elements that make up a column filter on a RadGridView column. Originally, I assumed a column had a filter applied if the ToggleButton (AutomationId="PART_DropDownButton") was on e.g. IsChecked = true, but this is not the case. Can anyone suggest how I can verify if a column has a filter applied from the elements in the attachment?
Many thanks!