I am having problems trying to get an element in a program we use, for example the element could be 1/3… I can get to the stage were I can identify that there is 1/3 however I can not get the robot to identify that it has 3 tasks to do, any ideas?
Why don’t you build it to work for all three activities, your workflow within Try Catch and check the “continue on error” box. Normally if there is one activity the robot will throw an error when it gets to the second or third one that doesn’t exist, but if you put it within try catch and check that box instead of throwing an error it will move on. this is not the best solution, it will slow your process down a bit. but will work.
you can also adjust the timeout in try catch to make it wait for at least 5 seconds and then move on.
this was just an example, there could be 1/100 files that need changes made too.
Atm my work flow can identify how many row there are eg 1/3 using a get attribute then a write line bill_terms.ToString so it will display whatever the ’ / ’ the amount is, however the next stage would be to get the robot to follow a process going by the ‘/ 10’ the last digit eg here 10.
this was just an example, there could be 1/100 files that need changes made too.
Atm my work flow can identify how many row there are eg 1/3 using a get attribute then a write line bill_terms.ToString so it will display whatever the ’ / ’ the amount is, however the next stage would be to get the robot to follow a process going by the ‘/ 10’ the last digit eg here 10.
@rachelmcelhone, okay i feel like i do not understand the process.
anyway use an assign activity maybe initialize a varible totalNumberOfTasks you can make it a string and then take that terms.ToString and assign it to that variable, then use a for each activity, or a while loop say for example while counter < Cint(totalNumberOfTasks) do the work and then increment counter by 1
In the first Assign activity, I just defaulted bill_terms to “1/3” on mine for testing purposes. However, on yours, since you’re scraping it, no need to include the Assign activity. The While activity ensures that the tasks will be done 3 times in this case. Hope this solves your issue.