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
When using MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider styles, TestStack.White.AutomationException occurs when calling Increment(double d).
After reviewing the code implementation for MahApps.Styles.Slider.Win10 and MahApps.Styles.Slider styles, I discovered that the names of the DecreaseRepeatButton and IncreaseRepeatButton properties have been changed to HorizontalTrackDecrease and HorizontalTrackIncrease, respectively. However, TestStack.White is still referencing DecreaseLarge and IncreaseLarge
Note: This behavior is not observed with MahApps.Styles.Slider.Flat as it is using the names as DecreaseLarge and IncreaseLarge.
Steps to reproduce
Use MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider style in a WPF application.
Use TestStack.White to interact with the Slider, e.g., calling Increment(double d).
Expected behavior
Expected Behavior:
When using MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider styles and interacting with the Slider through TestStack.White, the HorizontalTrackDecrease and HorizontalTrackIncrease should be updated to DecreaseLarge and IncreaseLarge to keep it consistent, so it is recognized as the respective RepeatButtons.
Actual behavior
When using the MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider style and calling the Increment(double d) method with TestStack.White, an AutomationException is thrown. The specific error message is: "Failed to get (ControlType=button or ControlType=check box), AutomationId=IncreaseLarge."
Describe the bug
When using MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider styles, TestStack.White.AutomationException occurs when calling Increment(double d).
After reviewing the code implementation for MahApps.Styles.Slider.Win10 and MahApps.Styles.Slider styles, I discovered that the names of the DecreaseRepeatButton and IncreaseRepeatButton properties have been changed to HorizontalTrackDecrease and HorizontalTrackIncrease, respectively. However, TestStack.White is still referencing DecreaseLarge and IncreaseLarge
Note: This behavior is not observed with MahApps.Styles.Slider.Flat as it is using the names as DecreaseLarge and IncreaseLarge.
Steps to reproduce
Expected behavior
Expected Behavior:
When using MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider styles and interacting with the Slider through TestStack.White, the
HorizontalTrackDecrease
andHorizontalTrackIncrease
should be updated toDecreaseLarge
andIncreaseLarge
to keep it consistent, so it is recognized as the respective RepeatButtons.Actual behavior
When using the MahApps.Styles.Slider.Win10 or MahApps.Styles.Slider style and calling the Increment(double d) method with TestStack.White, an AutomationException is thrown. The specific error message is: "Failed to get (ControlType=button or ControlType=check box), AutomationId=IncreaseLarge."
Environment
Screenshots
Slider.xmal
vs
FlatSlider.xmal
The text was updated successfully, but these errors were encountered: