I am using dynamic selector for clicking a button on a website.
Selector Code:
Rows(RowCounter)(“Capacity”).ToString is a dynamic value that i am getting from excel.
This selector code works fine first time when opening browser but when this process repeat by opening same website again it doesn’t work. It does not click on same button. Please advise
Your logic seems to be fine. My hunch is either the button attributes change when you are trying to click it for the second time. Or the excel parameter on the second row could have some additional characters like white space which makes the selector go wrong.
Use Write Line activity to print the selector before clicking the button. You can debug why it doesn’t click the second time.
i am using same excel sheet . parameters remain same because there is only one row in excel sheet. i have also printed selector its value remain same but it doesn’t work