Question
Last activity: 3 Jul 2018 4:20 EDT
Dynamically change the match rule of control
Hi,
Is it possible to change the match rule of a control dynamically while running the automation?
Thanks,
Harish.
You cannot think of any scenario where this could be needed?
I have a bank website, I need to download 46 different statements placed on different accounts luckily using the same user. All accounts is listed, but I cannot simply search out each one by filtering.
Because I cannot change the match rule:
- Now I need to interrogate all 46 lines on the same page, because I only have the account number, the remaining ID/html is random generated and i'm only interested in a unique match.
- have a switch that select which of the 46 objects it need to wait for and click on.
With dynamic match rule:
- I could retrieve it directly from excel / script, pass to a stringUtil, and then change the match rule to fit, click the button.
- 3-4 stages compared to 46 * 2 stages.
My alternative would be some javascript based solution, by figuring out the ID on runtime of each account. However, if dynamic match rules were possible, I didn't have to code and was done in no time with a clean and clear automation.


Pegasystems Inc.
IN
Hi There,
In such cases you have to clone the controls based on a common attribute.
There is a good chance of the attribute class being common for all of those within the HTML.
Regards,
Ujjwal
Is this something that will become available? I have a similar situation that being able to dynamically update the match rules would reduce allot of extra work. I have 22 check boxes which ones are checked depends on information that is gathered earlier in the automation. Being able to update the value of the match rule so you could hook into the next control using a loop would be far easier and efficient than setting up a switch.
No, it is not. There really is no reason that you should need to do this.