Hi, Guys
I have a problem when doing UI automation for our in-browser Silverlight app, when simulate user copy and paste, silverlight will pop up a window and ask for permission, we cannot assume the copy and paste permission is already granted.
Currently we use the trick to workaround this, we focused to the "ok" button in the permission dialog and click space or enter, however that action will screw up the automation because I cannot find a way to know when permissionDialogPops is true, please help. Thanks
if(permissionDialogPops)
{
_myManager.Desktop.KeyBoard.KeyPress(Keys.Left);
_myManager.Desktop.KeyBoard.KeyPress(Keys.Space);
}
I have a problem when doing UI automation for our in-browser Silverlight app, when simulate user copy and paste, silverlight will pop up a window and ask for permission, we cannot assume the copy and paste permission is already granted.
Currently we use the trick to workaround this, we focused to the "ok" button in the permission dialog and click space or enter, however that action will screw up the automation because I cannot find a way to know when permissionDialogPops is true, please help. Thanks
if(permissionDialogPops)
{
_myManager.Desktop.KeyBoard.KeyPress(Keys.Left);
_myManager.Desktop.KeyBoard.KeyPress(Keys.Space);
}