Posted: 8 May 2019 8:23 EDT Last activity: 9 May 2019 11:10 EDT
keys not working
Please help on the below, it's a bit urgent!!
We are interrogating a page where a bunch of account numbers are present. We have correct match rules in place which return what we want to fetch.
However once we run the automation the for loop reading from different instances of account_number does not wait for keys to be created and I keep getting the "Key not provided by key provider error" How do I make sure that it waits till all keys are created.
The easiest to explain way is to essentially get the count of the clones (GetClones method on the cloned object), pause for a brief period, and compare the current count to the prior value. Loop on this until both values are the same.
Call GetClones() and extract a proxy from the result to get a count of the clones.
Record this value to a variable as the initial value.
Enter a forLoop.
On Yielded, pause for 250 ms (or whatever value allows at least one clone to match)
After the pause, call GetClones() again and get the count again and store this in another variable named current.
Compare these two values.
If they are equal, break the loop and continue as if all clones are present.
If they are not equal, set the initial value equal to current (the forLoop will execute again).
If the loop completes, you can treat this as a timeout waiting for all the clones.