Hello, im trying to save a web using the example on the xtype help page, its work everything, it brings the popup windows, its write the file name, but then it gets stuck, i tried with {KEY_ENTER} like in the example and with {KEY_ALT+KEY_S} and separate {KEY_ALT} {KEY_S} but no luck, the popup page keeps open and dont get the signal to save, if i put the mouse over the popup windows and press enter the file is saved.
You’re using the wrong combination to save a web page the correct key combination is {KEY_CTRL+KEY_S} after some seconds {KEY_ENTER} fast and simple.
that was the first combination i tried but no luck, the popup “save as” windows keeps open and dont save and close the ctrl+s works but the enter just dont work
Doing more test, it seems the problem is the popup windows lose focus just after xtyping the filename, so the commands send after doesnt work, as i have pauses between, if i manually click the windows just after the macro has write the file name it recover focus and then the {KEY_ENTER} commmand works and the file is saved, but i cannot and dont want to be in front of computer to click on windows to recover focus, so my question is what to do so windows dont lose focus or what command make windows recover focus before {KEY_ENTER} command, i tried bringbrowsertoforeground but dont work
In my opinion you have not added long pause in macro because this operation is easy to automate. Xtype require pause because xmodules simulate keyboard very fast
After some test I can confirm the save button can not click, seem that ui vision execute command under the window to save the page (and play a sound like error).
The only working solution is switch to desktop automation and click save button with image recognition because all other keyboard emulation (xtype) do not work.
@admin @newuserkantu did you every figure out a solution to this? I know you were pretty familiar w/ Firefox + UI.Vision.
I’m switching from Chrome to Firefox and I’m stuck on this same issue.
I’ve tried pressing ENTER or ALT+S to save with XType, SendKeys via XRun, and clicking the SaveAs box to see if it needs focus. Nothing works. However, the filename does change with XType as mentioned earlier.
It’s an attended macro so it can’t be computer vision though.
Speed. The only drawback to searching visually and the goal in this case.
It’s an attended macro - user hits the hotkey and macro runs faster than human input.
Otherwise, vision works great!