I have prepared a macro that works fine from UI Environment but when i call it from task scheduler, the window (where using Xtype when called from Ui environment I type file name and than click to upload) doesn’t show and macro finish regularly
I suppose for some reason the windows is closed but can’t figure which is the reason. I see from debug that the link where the dialog window is called highlights in green but the windows doesn’t appear.
thank you for the support.
Xtype command work with focus on windows only, try to add in macro this command bringbrowsertoforeground
Remember xtype and xclick need focus on screen you can not use mouse or other software when use these commands I prefer for this reason not use xtype and xclick commands because i work with multiple browser in same time.
. https://ui.vision/x/idehelp?cmd=bringbrowsertoforeground
Thank you but this doesn’t solve. Browser stays on foreground but when started from Task scheduler the window called from the click “linktext=Gestisci” (i see the click happening) doesn’t show and neither i find it under the browser still open (if somehow it has lost focus).
Hello Ulrich
sorry for the late reply: I had 10 days vacation.
The page not showing is the dialog where the macro writes the file name to upload.
Line 10 in the macro
I’ll record soon the screenshot
Probably xpath wrong of few seconds of pause to execute xclick command
Remember xclick and xtype command require focus and are slow command in my pc usually require 3 seconds to click, standard command are instantly
Try to modify in your macro every click in Xclick and add pause 5000 in every command in your macro i see a wrong macro code because you use click and after Xtype, it’s wrong, Xtype require focus on screen and need xclick before and require pause and slow execution.