Commit 2b3f944f by Tu Nombre

Merge branch 'interfor_v3' of git.anacsoft.com:Lusho/Pruebas-RTO into interfor_v3

2 parents ae0b95f9 f585f616
......@@ -2,7 +2,7 @@
carpetaDescargas = "/home/taller_5/Descargas/"
cabezaeraDescargas = "Planilla_Diaria-"
grepfile = "/home/taller_5/Pruebas-RTO/grep.sh"
grepfile = "/home/taller_3/Pruebas-RTO/grep.sh"
deltaminutos = 7
delataPositivoNegativo = "-"
ManualLogin = False # PAra hacer pruebas sin tener que loguear
......
......@@ -110,7 +110,7 @@ class FosaDiaria():
selenium.get(URL)
def BuscarExcelDescargado(self,tmp="/dev/shm/tmpscdecas_1.txt"):
def BuscarExcelDescargado(self,tmp="/dev/shm/tmpscdecas_3.txt"):
test = True
n = 0
while test:
......
#!/bin/bash
ls /home/juan/Descargas/ -ls | grep Planilla_Diaria-50 | grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_1.txt
ls /home/taller_3/Descargas/ -ls | grep Planilla_Diaria-50 | grep xls | grep -v crdownload &> /dev/shm/tmpscdecas_3.txt
......@@ -6,6 +6,11 @@ from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
import time
########################################################################
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
#from webdriver_manager.chrome import ChromeDriverManager
class SeleniumInterface:
Chrome = "Chrome"
......@@ -15,9 +20,12 @@ class SeleniumInterface:
PageChangeWait = 0.5
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):
#########QUEDA AL PEDO
if d == SeleniumInterface.Chrome:
return webdriver.Chrome()
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!