Cannot save web

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.

Using firefox.
Thanks

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.

Tested and working well.

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

Post here complete macro code and complete log of ui vision

This is a easy operation to automate.

@kantuser Is this on Mac, Linux or Windows?

windows 10 64 bit firefox 64 bit, later i will copy code and log, but really the only code is the same in the example.

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

The CODE:

{
“Name”: “saveweb”,
“CreationDate”: “2020-3-23”,
“Commands”: [
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “store”,
“Target”: “true”,
“Value”: “!errorignore”
},
{
“Command”: “open”,
“Target”: “https://www.google.com”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_CTRL+KEY_S}”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “3000”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “test”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “3000”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
}
]
}

The LOG:

2020-03-26T17:41:55.386Z - UI.Vision RPA started
2020-03-26T17:42:04.918Z - [status] Playing macro saveweb
2020-03-26T17:42:05.007Z - [info] Executing: | bringBrowserToForeground | | |
2020-03-26T17:42:05.493Z - [info] Executing: | store | true | !errorignore |
2020-03-26T17:42:05.837Z - [info] Executing: | open | https://www.google.com | |
2020-03-26T17:42:09.564Z - [info] Executing: | XType | ${KEY_CTRL+KEY_S} | |
2020-03-26T17:42:10.284Z - [info] Executing: | pause | 3000| |
2020-03-26T17:42:11.733Z - [info] Executing: | XType | test | |
2020-03-26T17:42:12.408Z - [info] Executing: | pause | 3000| |
2020-03-26T17:42:13.861Z - [info] Executing: | XType | ${KEY_ENTER} | |
2020-03-26T17:42:14.560Z - [info] Macro completed (Runtime 9.58s)
2020-03-26T17:42:23.338Z - UI.Vision RPA closing

Dont work

Hi

I’m working to solve your macro code, there is a problem and do not work.

When i fix code i post the solution with new macro code.

I use firefox portable latest version.

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.

You can try with Xclick with image recognition

https://ui.vision/rpa/x/desktop-automation

https://ui.vision/rpa/docs/xclick

If someone have a fast solution will be appreciated.

1 Like

I thought that was the problem but i dont want to use xclick because the 25 times limit

You can use 25 times xclick/xtype for every macro/testsuite you run

I do not know other solution sorry.

1 Like

@KantuUser
Or just pay the small one time $89 charge to get unlimited XClick and you help support development of the program you’re benefiting from

This works for me… it is to save a pdf though so may be different for you.
Done using chrome windows 10

I create the macro on-the-fly therefore a unique name can be included in the macro.

{ 
  "Name": "Save", 
  "CreationDate": "2019-4-1", 
  "Commands": [
    { 
      "Command": "bringBrowserToForeground", 
      "Target": "", 
      "Value": "" 
    }, 
   { 
      "Command": "XType", 
      "Target": "${KEY_CTRL+KEY_S}", 
      "Value": "" 
    }, 

    { 
      "Command": "pause", 
      "Target": "500", 
      "Value": "" 
    }, 

   { 
      "Command": "XType", 
      "Target": "c:\\DIR\\SUBDIR\\name.pdf", 
      "Value": "" 
    }, 

    { 
      "Command": "XType", 
      "Target": "${KEY_ENTER}", 
      "Value": "" 
    } 
 ] 
}
1 Like

We test it on firefox not chrome the user need this macro for firefox

I tried with firefox and usually do not work, can you try with firefox please ?

Usually enter do not save and macro remain stucked

@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.

Why not? XClick on the dialog button works.

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!