Guys, there are still problems with automation on an unstable website.
The site I use crashes a lot, so I put a Refresh command in the code for each loop. It turns out that if the page is out of Ar, the Refresh command doesn’t work. does not refresh the page. I understand that Refresh should be a ‘strong’ code that should be executed regardless of the situation. To reinforce the page update and check if the site is operational, I placed an “Open” with the site, and just like refresh it doesn’t work. This makes it very difficult to use the macro and the lack of confidence in letting it run automatically.
What if you click on the “Refresh” icon in Chrome manually, does the website load again?
If that works manually, you can automate it with an XClick on that icon:
Kantu engine does not work on empty pages!
For example, if you open a fresh browser with a no website loaded kanty script will not work. You need to have some kind of code in the web site to have Kantu functional. Even if you just want to reload a page.
If the page does not load any content, because the website does load from the server I have the feeling this is the same issue.
Just a thought.
That is 100% true for website commands like CLICK, SELECT, EXECUTESCRIPT or TYPE. But other commands that do not directly work with the website like STORE, IF, EXECUTESCRIPT_SANDBOX, XCLICK, XMOVE etc should all work even if there is an empty or crashed page in the browser. If not, that would be a bug.
In this case, if I click on the physical button the page works again, but I was unable to set up an Xclick, when I click to select the button it does not allow me to select and separate the image. How would you assemble this code?
Interesting, I didn’t know this information, but what alternative is there? If I run a macro and the internet goes down, will the macro stop then?
Did you switch to desktop automation mode? In this mode the SELECT button allows you to grab a screenshot/buttom image from anywhere on the desktop. For example an image of the Chrome “Refresh” icon in the browser toolbar.
I made the change and it worked, I was able to capture the command. But for it to work, I need to have the page open, right? since Xclick simulates a manual click. It turns out that I run several different macros and pages. If I’m on another page, it won’t work. Any internal solution?
Yes
One way to have several of XClick-using macros to run at the same time is to run each in its own virtual machine. For example, Ubuntu 20.04 virtual box images are light-weight and free.
Ulrich is right, the script can run with an empty browser content. I just checked.
Here is another thought, I have a script that needs to refocus on the browser after I do some stuff in my outlook. Maybe that can help you to resolve your issue as well.
Try those commands:
- bringIDEandBrowserToBackground
- bringBrowserToForeground
{
“Command”: “bringIDEandBrowserToBackground”,
“Target”: “”,
“Value”: “-> TO GET THE BROWSER IN FRONT OF OUTLOOK”,
“Description”: “”
},
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
More ideas :).
- Are you able to see what HTML is in that website? Chrome → right click / Inspect. and if there is any html code can you get some of the code values with storeText?
- Also you can try to refresh the page with a javascript command running as “execute”. Javascript helped me a lot to get over the imitations of Kantu.