Navigation

    OpenIAP

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    ClickElement (sometimes) downloads 3 times the same file.

    General Discussion
    openrpa filedownload clickelement
    3
    11
    119
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dgtexad last edited by dgtexad

      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.

      Allan Zimmermann 1 Reply Last reply Reply Quote 1
      • Allan Zimmermann
        Allan Zimmermann @dgtexad last edited by

        @dgtexad Could you make a small example showing this issue, click export and then share the xaml file ?

        D 1 Reply Last reply Reply Quote 0
        • D
          dgtexad @Allan Zimmermann last edited by

          @allan-zimmermann Here it is.

          error-multi-download.xaml

          Allan Zimmermann 1 Reply Last reply Reply Quote 0
          • Allan Zimmermann
            Allan Zimmermann @dgtexad last edited by

            @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

            D 1 Reply Last reply Reply Quote 0
            • D
              dgtexad @Allan Zimmermann last edited by

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

              Allan Zimmermann 1 Reply Last reply Reply Quote 0
              • Allan Zimmermann
                Allan Zimmermann @dgtexad last edited by

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

                D 1 Reply Last reply Reply Quote 0
                • D
                  dgtexad @Allan Zimmermann last edited by

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

                  Allan Zimmermann 1 Reply Last reply Reply Quote 0
                  • Allan Zimmermann
                    Allan Zimmermann @dgtexad last edited by Allan Zimmermann

                    @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 ?
                    a8f7eb4d-b71b-4623-a9e3-fe66b95a4ee2-image.png
                    Did you change the permissions for the robot ? it should be "all sites"
                    457a5462-56b2-41be-b837-b8187e474123-image.png

                    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"

                    3b1b2110-2783-440f-b7fe-62af768b95ef-image.png

                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dgtexad @Allan Zimmermann last edited by

                      @allan-zimmermann

                      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.

                      wait-for-download.JPG

                      Thanks in advance.

                      Allan Zimmermann 1 Reply Last reply Reply Quote 0
                      • Allan Zimmermann
                        Allan Zimmermann @dgtexad last edited by Allan Zimmermann

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

                        1 Reply Last reply Reply Quote 0
                        • D
                          Dusan Perkin last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post