I am on training level 3 - Generate Yearly Report. Due to company’s IE restrictions, I perform all the activities in Chrome. 2 days ago, I got into the issue of UiPath not recognizing Chrome’s popup button downloading Monthly Reports. I have tried
1> Image Exists+Click Image =>If this is on a separate xaml file, it is working. But when I invoke workflow
or directly call these activitiies in System1_CreateYearlyReport.xaml, it is 80% not working. 20% time it is working and I don’t know why.
2> Send hot key enter/ESC => again, this is working on a separate xaml file when under attached windows object. However, it is not working when invoking workflow
or directly call these activitiies in System1_CreateYearlyReport.xaml
3> OCR text recognize every word but just cannot recognize the OK since it is blue back grounded.
I thought that’s because when calling them under system1_CreateYearlyReport.xaml, they are under “Attach Browser ‘ACMESyste Page’”. I did find that send hotkey need to be under windows object, otherwise it is hanging for a long time.
Also one thing to rule out is I have two monitors in extended mode(One window i run the debugger, another one i watch chrome activities). I guess that’s one of the reason UiPath cannot find the correct window to send the hotkey. So If I only use one monitor and bring the Chrome window to front after I run send hotkey in System1_CreateYearlyReport.xaml, it works. However for image recognizance, even if after I bring the Chrome window to front, it still not working
So my question is: From the browser object, how can I get the window object which is the parent(If my understanding is correct)?? and possibly bring it to front to activate it??
I have tried advice from Gregory, but got a Invoke Method: Value does not fall within the expected range.
Browser = your browser obtained from Open Browser
TargetType = (null)
TargetObject = Browser.Element
MethodName = BringToForeground
Not necessarily need a solution but can someone give some insights on these to help me understand it better? attaching my file for you to take a look.System1_CreateYearlyReport.xaml (50.6 KB)