I have a problem with my Loop (While),
I want to dowload All PDFs existing in my page (web).
For My pdf target i have a Selector i called SelPDF with this Initial value (“”)
I remplace the ## WITH my Variable i ( i = 1 ) and I increament my i in the end of loop.
I Recover the first pdf succesufuly And my While Loop on the first pdf always with the same i = 1 through i it was incremented with the value 1+1 ( i = 2)
Hi ImPratham45,
Yeah i See the Increament it is not in the Loop. I tested All places in the Loop but its not works.
@nadim.warsi, the selector for the seconds pdf is :<html title='AO6581 - Mise en oeuvre Kofax - S1 2019' /> <ctrl idx='2' name='Voir PDF' role='graphic' />
One thing. Im not sure why you have used while ‘True’. If this is just for testing then its fine otherwise this loop will not exit anytime as condition is always true.
I suggest you get the count of the pdfs on the page and then in the while use i <= countofpdf
Second, you dont need to use ## and then a replace. You can directly use i.tostring in your selector "<html title='AO6581 - Mise en oeuvre Kofax - S1 2019' /> <ctrl idx='"+i.toString+"' name='Voir PDF' role='graphic' />"
hello i am also not getting what happend but tried this nd its working
pls assign your Selpdf in loop ie insted put default value .then in that insted “##” put your counter ie “i”
Its working now, the robot click at the second PDF
Once the robot downloads the first pdf ( All Ok without problem), But the robot takes a lot of time to click on the second pdf. once it clicks on the pdf it puts again a lot of time to click to save it
the robot can not click quickly at the Button Oui
The Robot makes lot of the time to click on the button
And I have Anathor problem
the while it is always True
In above i have added simulate click enabled and waitforready property to none so it may be fast. you can test and let me know
I told you that While with True will not work. You will need a condition. So,
a. Is there a way to get the count of number of pdfs that are there on the page. May be a place where the webpage is displaying the count of files listed. If yes, then get that value using getText and the add that in the loop like i mentioned in the above post.
b. If there is no count on the web page. Use a boolean variable say ‘pdfexists’ and default it to True. Use this in your while look condition. Inside your while after you set your selector use a ElementExists activity. After that use a IF in which Then will be the rest of the steps that you already have and Else will have an assign pdfexists = false that way your while will exit when next pdf is not found (say 4)
Thank you very much @nadim.warsi and @ImPratham45
The Loop working well
But the robot makes a lot of time to click on button for the second and third Pdf
I share with you the Log Log.xml (29.8 KB)