trying to find a button that contains data-qa attribute. Try to handle it with following scheme:
x = browser.find_elements_by_css_selector("button[data-qa='deal-button']")
x[0].click()
As result getting an error:
IndexError: list index out of range
If I trying something like this:
button = (By.XPATH, "//button[@data-qa='deal-button']")
button.click()
There is another issue:
AttributeError: 'tuple' object has no attribute 'click'
What shall I do, to click on this button?