c# - How to open a website with Firefox and set authentication in a Coded UI Test? -
i want make coded ui test vs2015, opens website - using firefox browser. unfortunately when website opens, authenitication-popup appears , labels (like "username:") entryfields have same name. when playback recording, coded ui tries set text of label instead of textbox.
is there possibility - per example browserwindow.launch or - launch website , set authentication in 1 line of code?
best regards, patrick
looking @ popup crosshairs tool of coded ui may show differences between label , textbox, differences can added searchproperties
used find control.
if not work them consider using getchildren
or findmatchingcontrols
methods on (some control within) popup. expect them return both label , textbox. may return other unwanted controls well. can write own code distinguish 2 controls. if nothing else available may find comparing left
and/or top
and/or boundingrectangle
properties shows relative positions or sizes of 2 items on popup.
Comments
Post a Comment