mtm - Closing an alert box does not work on VDI via test agent -
when run codedui test case following code close dialog popup (javascript alert):
currentbrowser.performdialogaction(browserdialogaction.ok);
or, following code:
var popupwindow = new winwindow(null); popupwindow.searchproperties.add("name", "message webpage", "classname", "#32770"); popupwindow.technologyname = "msaa"; var okbutton = new winbutton(popupwindow) { technologyname = "msaa" }; okbutton.searchproperties.add("name", "ok"); okbutton.setfocus(); keyboard.sendkeys(okbutton, "{enter}");
it works locally, when run via microsoft test manager on vdi same version of windows , internet explorer popup not closed. no error thrown, vdi waits.
we using following versions:
tfs 2012 update 4 test agent
internet explorer 10
windows 7 enterprise
does know why , how can solved?
generally, want use setfocus on window not button. drawhighlight doing? have removed classname search property window?
Comments
Post a Comment