So i'm using coded UI test builder. And using the selector to select a label inside a google browser to I find out the exact type of it so I can include it in my code just like I have done for my button:
UITestControl ResultsBtn = new UITestControl(Browser);
ResultsBtn.TechnologyName = "Web";
ResultsBtn.SearchProperties.Add("ControlType", "Button");
ResultsBtn.SearchProperties.Add("Id", "MainContent_calBtn");
The problem below is I cant find the type of the controlType because the selector tool wont select the label it only selects the entire google browser(please see image) does anyone have any idea why,thanks...The blue line in the image is the only thing I can select in the browser, however any online examples you ca actually select a label
[![UITestControl AllOddNumsTB = new UITestControl(Browser);
AllNumsTB.TechnologyName = "Web";
AllNumsTB.SearchProperties.Add("ControlType", "?????");
AllNumsTB.SearchProperties.Add("Id", "MainContent_OddLbl_res");][1]][1]
Aucun commentaire:
Enregistrer un commentaire