Anindita Posted July 14 Share Posted July 14 Hi, Getting System.ComponentModel.Win32Exception : Access is denied on using ControlSend to send keystrokes in windows/os generated dialogs Piece of code I am using is this: sleep(5000) WinWait("[CLASS:Chrome_WidgetWin_1]","","20") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:Document Retrieval - OnBase 25.1.0.221 [Unknown] - Google Chrome]", "", "[CLASS:Intermediate D3D Window; INSTANCE:1]", "{TAB}") ControlSend("[CLASS:Chrome_WidgetWin_1; Title:Document Retrieval - OnBase 25.1.0.221 [Unknown] - Google Chrome]", "", "[CLASS:Intermediate D3D Window; INSTANCE:1]", "{Enter}") I need this to handle a dialog that comes from a service and my job is to click on one button and remove it from focus. Also most importantly i need to run this code via jenkins in a remote vm where my automation tests run. Sharing a screenshot of the AutoIt v3 and the dialog that i want to handle: Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now