Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coded UI Testing Not Working with Multiple Toggle Switches #3690

Closed
SheriSteeves opened this issue Nov 13, 2019 · 0 comments · Fixed by #3756
Closed

Coded UI Testing Not Working with Multiple Toggle Switches #3690

SheriSteeves opened this issue Nov 13, 2019 · 0 comments · Fixed by #3756
Labels
Milestone

Comments

@SheriSteeves
Copy link

I cannot use CodedUI to create a test on a window that has multiple ToggleSwitch controls.
The automation ID for every toggle control is always "Switch", even though I have set up my own Automation.AutomationID in my XAML. Technically the problem, exists for a single ToggleSwitch too.

I can record commands to turn on/off the different toggleswitches, but on playback, of course, it only ever finds the first one.

Expected behavior
I expected my automation ID's to be used for the controls. I need to be able to turn the toggles on/off and be able to test against the control's state of "Pressed".

Screenshots
Clip2

Environment(please complete the following information):

  • MahApps.Metro version v1.6.5
  • OS: Win10
  • Visual Studio 2017
  • .NET Framework 4.52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants