I have a requirement where i need to enter a trade ID and search for it clicking a button(_Search). After the Search button is clicked in the same form we have another button(basic_button) which is displayed whose id changes once the trade ID changes.
But for me the form is being displayed in 2 different forms when using web adapter (in universal web adapter it is taken as one single form).
I have tried match rules but I am not able to perform click the 2nd button(basic_button). how can i achieve the perform click of button whose id changes dynamically?
You are not matching on the correct button. There is no specific trick to performing click on something who's ID changes. The trick is in determining exactly what you are matched (or not matched) to. Without access to your specific application, I cannot assist much further, however I would suggest you analyze how you are matching not just the button but its parents as well as it is possible you are matched to the wrong parent and therefore attached to the wrong button.