if link : l = link.get_attribute("href") print (l) button=self.driver.find_element_by_xpath( "//button[@id = 'refuse-alert-button' and @data-record " in l +"]")
bug //////////////////////////////////// File "D:\project\odoo_selenium\api\frontend.py", line 233, in refuse_record "//button[@id = 'refuse-alert-button' and @data-record " in l +"]")