I am trying to click an item in a product page to add to my cart something but I can't do it because I am getting many errors or nothing happens. This is my code :
i = driver.find_element_by_xpath("//button[@class='exclusive']")
i.click
and this is the webpage code:
<p id="add_to_cart" class="buttons_bottom_block no-print">
<button type="submit" name="Submit" class="exclusive">
<span>Add to cart</span>
</button>
</p>
sorry if I made mistake but I'm new! Thanks for your help.