Execution duplicating activities
-
Hi,
sometimes when i play a web automation workflow, it duplicates an execution 3 times (for example, it opens the url 3 times simultaneous. It also happens with execution of the "Execute Script"). It's always one (the correct) or three executions, never another number. This has already happened on several different workflows. I realized that it usually happens after a "Get Element" that takes a long time to find the element. I already tested with chrome and edge, and it happens in both. What can it be?
-
The "open url 3 times" bug have been reported by many people, yet i cannot reproduce pn my end, and when I do screen sharing with someone who has the issue they cannot reproduce it either. So, I will be looking in to this as soon as i have something i can work with/on.
I sounds like the open URL an execute script thing is related, but it could also be that you are using Execute Script on a page that has multiple frames ( like Iframes ). Execute script will run in all frames unless you set FrameID. So try setting frameid to 0. ( If this ONLY happens after Get Element takes a long time, then that will not help. But then i think you might have stumbled on the issue with Open URL no-one has been able to reproduce ? ... is the website you are working public accessible ? Can I access it ? ) -
@allan-zimmermann Allan, I can repeat this issue. If you set NewTab of Open URL to True, it'll open 3 tabs.
Attached is my simple workflow xaml file.
open-3-tabs.xaml -
Nope, it only opens one tab on my machine.
There must be some other thing effecting the browser that have this issue. -
@allan-zimmermann If your Chrome is running, it'll open 3 tabs. But if it isn't, it'll not. You can try to keep Chrome running, and rerun the workflow multiple times to see if it happens
-
@allan-zimmermann And the issue also is related what website you're opening. For several non-English websites, I have the issue. But for pure English website, it's fine. So I doubt open-3-tabs and ExecuteScript-return-null are all related to language charset.
-
@allan-zimmermann So you can try the URL I put in my xaml file, https://www.baidu.com/
-
No, like I said, I just ran your workflow. Both with and without chrome open, it does NOT open multiple tabs. There is something else making this happen. Just not sure what
-
website that I use is private, but I can reproduce using any url.
the way I managed to reproduce more easily was using open url with newtab = true and a "Get Element" with a timeout of 10 seconds on an element that does not exist on the page. After two or three executions of the workflow it starts to present the problem. This is the easiest way, but it happens in other ways too.
-
@cristi4n thank you, will try that.
-