I have been trying to autonomate a process of updating the available number of products on a web page, which, at the moment, is done manually.I successfully log in to the website using requests, but when I try to scape the page after the login, the html that I get is something containing "page.breadcrumbs.*" and a javascript code and as far as I read, it seems that the page is generated using javascript. I tried using Selenium for the autonomation, so I tried that, but now I cannot login because after sending the credentials in the webpage there is a slider that appears in order to verify. I inspected the page and took the class name and tried to slide it, but I cannot make it work.enter image description here
Here is the code that I use, any help would be appreciated.
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
browser = webdriver.Chrome()
browser.get("page")
username = browser.find_element_by_name("TPL_username")
password = browser.find_element_by_name("TPL_password")
username.send_keys("username")
password.send_keys("password")
submit = browser.find_element_by_class_name("next-btn")
submit.click()
wait = WebDriverWait(browser, 3)
slider = browser.find_element_by_class_name("nc-lang-cnt")
move = ActionChains(browser)
move.click_and_hold(slider).move_by_offset(100, 0).release().perform()
wait = WebDriverWait(browser, 5)
page_title = browser.title
print(page_title)