Commit 53d4f9e1 by Tu Nombre

Error SSL

1 parent 6881c5fc
...@@ -6,6 +6,11 @@ from selenium.webdriver.support import expected_conditions as EC ...@@ -6,6 +6,11 @@ from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException from selenium.common.exceptions import TimeoutException
import time import time
########################################################################
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
#from webdriver_manager.chrome import ChromeDriverManager
class SeleniumInterface: class SeleniumInterface:
Chrome = "Chrome" Chrome = "Chrome"
...@@ -15,9 +20,12 @@ class SeleniumInterface: ...@@ -15,9 +20,12 @@ class SeleniumInterface:
PageChangeWait = 0.5 PageChangeWait = 0.5
def __init__(self, driverType): def __init__(self, driverType):
self.driver = self._getDriver(driverType) self.chrome_options = Options()
self.chrome_options.add_argument("--ignore-certificate-errors")
self.driver = webdriver.Chrome(options=self.chrome_options)
def _getDriver(self, d): def _getDriver(self, d):
#########QUEDA AL PEDO
if d == SeleniumInterface.Chrome: if d == SeleniumInterface.Chrome:
return webdriver.Chrome() return webdriver.Chrome()
raise NoSuchDriver(self.driver) raise NoSuchDriver(self.driver)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!