I was trying to use the following code snippet to verify if all the links are working or not
links = driver.find_elements_by_css_selector("a") for link in links: if requests.head(link.get_attribute('href')).status_code == 200: print("valid link") else: print("Broken Link")
It gives me this error message in the console: raise InvalidSchema("No connection adapters were found for '%s'" % url) requests.exceptions.InvalidSchema: No connection adapters were found for 'javascript:window.print()'