On the webpage, there are multiple rows with buttons having the same name. I am facing issues with XPath as the ID is identical for all the rows, which is //*[@id="btnChangeStatusThisOrder"]
Below is the code for one specific row that contains the button I need to click on. How do I write JavaScript code to interact with this button? Keep in mind that the ID btnChangeStatusThisOrder
is used for multiple rows.
<a href="javascript: handleOrderStatusChange('251')" id="btnChangeStatusThisOrder" class="actionBtn">Go</a>