I have a small test case:
- Open the browser
- Enter the URL “http://practice.automationtesting.in/shop/”
- Adjust the filter by price between 150 to 450.
I tried to use ActionChains, but no result.
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
driver = webdriver.Chrome()
driver.get("http://practice.automationtesting.in/shop/")
driver.maximize_window()
slider = driver.find_element_by_xpath("//*[@id='woocommerce_price_filter-2']/form/div/div[1]/span[2]")
move = ActionChains(driver)
move.click_and_hold(slider).move_by_offset(10, 0).release().perform()
Can someone explain, what I'm doing wrong? Thanks.