ClickElement (sometimes) downloads 3 times the same file.
-
Hello, the "OpenRPA.Activities.ClickElement" generated using the upper "Record Button", when makes click to a download button sometimes downloads 3 times the same file. The "Virtual Click" property is True.
OpenRPA: 1.3.31.0
Chrome: 98.0.4758.102 (Official Build) (64-bit)Thanks in advance.
-
@dgtexad Could you make a small example showing this issue, click export and then share the xaml file ?
-
@allan-zimmermann Here it is.
-
@dgtexad Hey, thank you. But I cannot access https://zeusr.sii.cl , so makes it a little hard to test.
But I have seen issues with getting multiple items (never multiple clicks ) on pages with iframes ( iframes are not fully supported yet ) ... I don't know if that is the issue here.
There was for a looooong time an anying bug, where the robot would sometimes start doing everything 3 times ... but we finally tracked it down to a bug in my code. The robot keeps track on all browser windows (to know the windows location, used for highlighting and non virtual clicks ) and tabs ( to know what window it belongs too, and to find tabs with specefic urls ) but I had a bug, that if you had 2 different browsers open at the same times, some times that could make the robot either find the elements double'd or trippled ( if you had multiple windows ) or it would start reporting "tab not found" when closing a tab in the "second" browser.
So my next question is, what version are you using ? If you are on an old version ( from before this was fixed) , it might help to update -
@allan-zimmermann I made an update of OpenRPA from 1.3.31 to 1.3.52. The behaviour is similar (sometimes works fine).
In this case, i need to open and close Chrome and with this new version the record button doesn't record as in the previous version (now is using "OpenRPA.Windows.GetElement" and not "OpenRPA.NM.GetElement"), so, the click event only works if the browser hasnt been closed.
I'm using the "OpenRPA.NM.GetElement" and manually selecting the button. But stills downloads more than 1 time the file.
-
@dgtexad Hey, I'm not sure if we are now talking about a new problem or the same ?
What do you mean "browser hasnt been closed" you cannot click on something that has been closed ?
Why are you using Windows.GetElement for chrome ? you should always use "nm.get element" unless you need to click an alert.
Also, did you remember to add the click inside a "Wait for download" to ensure chrome does not prompt for filename? -
@allan-zimmermann is the same problem
What do you mean "browser hasnt been closed" you cannot click on something that has been closed ? Why are you using Windows.GetElement for chrome ? you should always use "nm.get element" unless you need to click an alert.
The robot (in this new version 1.3.52) using the record button on the same site, records using "Windows.GetElement". Im not using it, the robot records using it. I'm always have used "OpenRPA.NM.GetElement".
Also, did you remember to add the click inside a "Wait for download" to ensure chrome does not prompt for filename?
Inside "Wait for download" is the "OpenRPA.NM.GetElement" being the button and inside is the "OpenRPA.Activities.clickElement". I dont understand what you mean. When the file is downloaded, doesnt ask for filename. Is there other source of documentation than this https://docs.openiap.io/openrpa.html#openrpa-nm?
-
@dgtexad Hey
Hmm
If the robot is recording using windows and not NM, you either don't have the chrome extension installed ( or something is wrong with your install .. )
Does the robot say "nm: connected" if you have both the robot and chrome open ?
Did you change the permissions for the robot ? it should be "all sites"
By default chrome will download a file when you click something to download, but sometimes some people setup chrome to "prompt" before downloading ... i suspect that is the windows elements you where talking about .... the solution to that ( or simply if you want to get the filename of a file you download ) is to add the "click" inside a "Wait for download"
When the robot hits "Wait for download" it tells chrome to NOT prompt for download, and it tells chrome to notify the robot everytime a download completes. Wait for download will then wait for this event before continuing ...
By adding the click inside "Wait for download" you "prepare" chrome before the download, clicks, and then get notified when the download is complete and ge the filename in the event of "Wait for download" -
Does the robot say "nm: connected" if you have both the robot and chrome open ?
- Yes.
Did you change the permissions for the robot ? it should be "all sites"
- No. It is on "all sites".
_
So, I did an OpenRPA update and it started recording using Windows.GetElement. So if my installation is corrupted, what do you suggest to do? I mean, other than doing a fresh install, are there any configuration files that need to be manually deleted?
And, i'm using "wait for download" from the beginning. Still downloads more than one time the file, but not always.
Thanks in advance.
-
@dgtexad Hey, so I dont think you installation is corrupt, I think it's the robot that does not like that site. If you reachout on rocket chat, I would like to see what is happening using a remote session, if you are ok with that ?
I don't have time this week, but sometime next week, if you also have time ?
( drop me an private message on rocket chat, or by email so we can arrange a time ) -
Hi, I also have the same problem.
So, I made the DataScraping BOT for Web. After 54/5-th page, approximately, BOT start to click tree times at once the 'Next button' from website. Sometimes, I have the same problem, but it disappears when I close the Chrome. This is problem, because he don't get every info from pages and don't end the BOT.