Hi, I keep getting this error when I tried to use GenieDisplayObject().click()
The error message is: Failed to move mouse on application [XXXXX] because either application/component was not in focus or issue occurred at genie end
And the method I tried to call is:
(newGenieDisplayObject("SP^MASTER_DIALOG:::FP^MASTER_DIALOG:::SE^closeButton::PX^0::PTR^0::IX^3::ITR^0",app1)).click(23,14,804,64,980,640,3,false)
I am sure the element is there and the local x/y coordinates are correct and seems like Genie cannot take control of the mouse, can anyone help? thank you!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This will come whenever the rainbow rectangle (small icon appears on the left corner of the application whenever UI event is played back) is not visible or color correction on Mac is not set to Generic RGB.
If color correction is correctly set make sure that while playing back the UI Events the application is in focus and more importantly no pop-up (may be from within application) is covering the top left corner of the application.
Hope this will help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
And before your reply I went through the Executor's source code, I changed the method which is used for locating the left corner of the application a little bit and now it can accept user configuration for the left corner coordinates. It can be a little faster than scanning the whole screen and locate the expected rainbow icon and works very well for my current project.
But your solution is definitely the universal solution.Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi njtuxy, any chance you could share that change to the source code?
I'm getting the same error here. Have checked colour correction and focus and still no joy!
Any help would be greatly appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I keep getting this error when I tried to use GenieDisplayObject().click()
The error message is: Failed to move mouse on application [XXXXX] because either application/component was not in focus or issue occurred at genie end
And the method I tried to call is:
(newGenieDisplayObject("SP^MASTER_DIALOG:::FP^MASTER_DIALOG:::SE^closeButton::PX^0::PTR^0::IX^3::ITR^0",app1)).click(23,14,804,64,980,640,3,false)
I am sure the element is there and the local x/y coordinates are correct and seems like Genie cannot take control of the mouse, can anyone help? thank you!
This will come whenever the rainbow rectangle (small icon appears on the left corner of the application whenever UI event is played back) is not visible or color correction on Mac is not set to Generic RGB.
If color correction is correctly set make sure that while playing back the UI Events the application is in focus and more importantly no pop-up (may be from within application) is covering the top left corner of the application.
Hope this will help.
Hello Ruchir Jain,
I am getting the same issue definately my rgb and application focus are happening, please help
cool, thanks, Ruchir!
And before your reply I went through the Executor's source code, I changed the method which is used for locating the left corner of the application a little bit and now it can accept user configuration for the left corner coordinates. It can be a little faster than scanning the whole screen and locate the expected rainbow icon and works very well for my current project.
But your solution is definitely the universal solution.Thanks!
Hello njtuxy
Could you please elaborate your fix???
I have the same issue and cannot fix
Hi njtuxy, any chance you could share that change to the source code?
I'm getting the same error here. Have checked colour correction and focus and still no joy!
Any help would be greatly appreciated.
I have the same issue
Have you found a solution for your issue?