Hello, I have a question.
How can I input 1,2,3,4,5 sequentially in an image and enter up to 10?
use a “For Each” loop to iterate through a list of numbers from 1 to 10.
For each number, it will use the “Type Into” activity to input the number into the field.
The “Delay” activity is used to provide a short pause between each input.
Hope it helps!!
Thank you for your answer. Is this the right code?
Enumerable.range(1, 10).ToArray
=> Take an assign activity and create a Array of int variable datatype as initialize the values Let array of string variable name it as ArrCount.
- Assign → ArrCount = {1,2,3,4,5,6,7,8,9,10}
=> After assign activity use for each activity to iterate the Array variable (ArrCount)
=> Inside for each use type into activity and indicate the element that you want to change.
=> In type into filed give the CurrentItem which is output of for each.
Check the below workflow for better understanding.
Hope it helps!!
To Iterate all the pages in the pdf
Use get pdfPageCount activity to know how many pages in your in pdf and save totalPdfCount
Initialize a variable Init_Count=1
Take for each
Init_Count<=TotalPdfCount
Your actions
Init_Count=Init_Count+1
1.Use the get pdf count activity and store that in a variable example PDFCount
2.Assign the variable as Counter = 1 (datatype = Int)
3.Use the for while condition and pass the syntax as Counter<=PDFCount
4.Pass the variable Counter.Tostring
into the range field in properties panel of the read pad activity so that it reads that particular page.
5.Use the assign activity as Counter = Counter + 1
6.The loop continuous until the pages completed.
Note: The above mentioned process executes until the pages in a pdf completes. If the page count is 5,10,15,20 so what ever the count may be still it excutes.
Hope it helps!!
Thank you very much. I have one more question. What should I write to exit Adobe when the syntax of the image appears, if or if else ?
Hi @22222222asas ,
Could you let us know also the purpose of using UI Automation for this task ?
We have PDF activities for accessing each page as well and get it’s data. As a Background approach would be better, we are suggesting this, but also let us know your case if possible so we can identify if UI Automation is a better fit.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.