Jun-15-2019, 11:40 AM
I cant seem to even get the local to run at all
It doesnt seem to work?
It closes the slider view from the volume button.
So i assumed that -100 was too much and maybe it hit the volume button to close it again, but after trying smaller integers, the same effect occurs.
from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys from selenium.webdriver import ActionChains import time from bs4 import BeautifulSoup #--| Setup options = Options() #options.add_argument("--headless") browser = webdriver.Chrome(executable_path=r'/home/metulburr/chromedriver') #--| Parse or automation browser.get('/home/metulburr/local3.html') slider = browser.find_elements_by_css_selector('#control-volume-slider > input')[0] move = ActionChains(browser) # Move to 0% after 5-sec time.sleep(5) move.click_and_hold(slider).move_by_offset(-100, 1).release().perform()give the error
Error:selenium.common.exceptions.WebDriverException: Message: unknown error: unhandled inspector error: {"code":-32000,"message":"Cannot navigate to invalid URL"}
Switching the code in the actual site...It doesnt seem to work?
It closes the slider view from the volume button.
So i assumed that -100 was too much and maybe it hit the volume button to close it again, but after trying smaller integers, the same effect occurs.
Recommended Tutorials: