Once I add the following item to cart: http://www.supremenewyork.com/shop/accessories/wau85w4km/cxv3ybp1w and go to the check out page: https://www.supremenewyork.com/checkout, there is a terms and conditions checkbox that I’m attempting to check off with Browser’s splinter
but I’m not able to do so:
e.g. Tried the following but all encountered an error:
from splinter import Browser
browser = Browser("chrome")
browser.find_by_id('order_terms').click()
#Error: selenium.common.exceptions.WebDriverException: Message: unknown error
browser.check('order[terms]').click()
#Error: selenium.common.exceptions.ElementNotVisibleException: Message: element not visible
browser.find_by_name('order[terms]').click()
#Error: selenium.common.exceptions.ElementNotVisibleException: Message: element not visible
What could I be doing wrong? And how can I go about checking the checkbox with the Browser splinter
?
Thank you in advance and will be sure to upvote/accept answer
splinter
library, but if I had to make a guess on what was going on I would say the second errors are caused by the first one. – Tropousbrowser.find_by_css("#order_terms").click()
and it worked for me? – Eventualselenium.common.exceptions.WebDriverException: Message: unknown error: Element <input class="checkbox" type="checkbox" value="1" name="order[terms]" id="order_terms" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"> is not clickable at point (616, 478). Other element would receive the click: <ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%;...
– Known