I have to click on an element that has several of the same, the way to differentiate is by the "onclick" attribute but I can't click on it. How would xpath be?
<button onclick="VxManager.getWidget('DirectQuoteLineItemList_inner').filterApply('4', 'DirectQuoteLineItemList_inner_COL_4');" id="Button" type="button" title="OK" class="VButton default-true">OK</button>
I think that is something like this:
WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.XPATH,'//*[@id="Button"][@title="OK"][@onclick="VxManager.getWidget('DirectQuoteLineItemList_inner').filterApply('4', 'DirectQuoteLineItemList_inner_COL_4');"]))).click()
But this doesn't work and in the page has others titles, ids and classes.
Thank you in advance.