For example the button I need to click has xpath of //*[@id="button-1456-btnInnerEl"] , only the number '1456' is varying across various buttons across page. There are more buttons on same page with same name and similar ID only number is varying
if I use contains functionality like //span[contains (@id, 'button')] or //span[contains (@id, 'btnInnerEl')] , get so many of them identified.
Could you please help me on this or point to the correct example?