I have been testing a desktop application (WPF). in Use: C#, Appium, WinAppDriver. There are several numeric textboxes in one menu. The problem I have here is that I can't access the UpButton of a specific textbox on this page as all of the Up/Down Buttons have the same ID, "PART_IncreaseButton".
It's a numeric textbox with build in up down control. There are several of them in one menu. textbox
I use the inspect.exe to identify the object. Tree in inspector: inspect screenshot
So under custom are the 3 controls of the textbox "edit", "button", "button" With "Root_0_Blue_AutomationId" I can access the textbox and for instance write something into the box.
But if I inspect the up button of the specific textbox it has the automationID "Part_IncreaseButton". and the upcontrols of the other textboxes have the same ID. Only the AutomationID of the rootID is different, and the ID of the upcontrols stays the same, for instance:
Root ID (of the textbox): "Root_0_Blue_AutomationId" UpControl ID: "Part_Increasebutton"
Root ID (2nd textbox, green channel is different): "Root_0_Green_AutomationId" UpControl ID: "Part_Increasebutton"
How can I manage it to access the UpControl of the second textbox?