stevo

stevo
mail@pastecode.io avatar
unknown
python
2 years ago
596 B
1
Indexable
Never
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from time import sleep




url = "https://www.zalando.sk/vans-mid-skool-37-unisex-vysoke-tenisky-blanc-de-blancblack-va215n035-a11.html"

chrome_options = Options()
driver = webdriver.Chrome(options=chrome_options)
driver.get(url)

dropdown = driver.find_element_by_id("picker-trigger")
dropdown.send_keys(Keys.SPACE,Keys.TAB,Keys.TAB,Keys.TAB,Keys.TAB,Keys.TAB,Keys.SPACE,Keys.TAB,Keys.SPACE)
sleep(4)
driver.get("https://www.zalando.sk/cart")