Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Luciano Barletta
/
Pruebas-RTO
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 53d4f9e1
authored
2024-07-27 10:48:38 -0300
by
Tu Nombre
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Error SSL
1 parent
6881c5fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
iselenium.py
iselenium.py
View file @
53d4f9e
...
@@ -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
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment