Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
b57ec70b
authored
Apr 02, 2015
by
Csók Tamás
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selenium: simplyfied the wait_and_accept method
parent
1837378c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
18 deletions
+1
-18
circle/dashboard/tests/selenium/util.py
+1
-18
No files found.
circle/dashboard/tests/selenium/util.py
View file @
b57ec70b
...
@@ -224,27 +224,10 @@ class CircleSeleniumMixin(SeleniumMixin):
...
@@ -224,27 +224,10 @@ class CircleSeleniumMixin(SeleniumMixin):
form
.
send_keys
(
argument
)
form
.
send_keys
(
argument
)
accept
.
click
()
accept
.
click
()
if
try_wait
is
not
None
:
if
try_wait
is
not
None
:
try
:
WebDriverWait
(
self
.
driver
,
self
.
conf
.
wait_max_sec
)
.
until
(
WebDriverWait
(
self
.
driver
,
self
.
conf
.
wait_max_sec
)
.
until
(
ec
.
visibility_of_element_located
((
ec
.
visibility_of_element_located
((
By
.
CSS_SELECTOR
,
try_wait
)))
By
.
CSS_SELECTOR
,
try_wait
)))
except
TimeoutException
:
# Try to submit to form using other method
try
:
accept
=
WebDriverWait
(
self
.
driver
,
self
.
conf
.
wait_max_sec
)
.
until
(
ec
.
element_to_be_clickable
((
By
.
CLASS_NAME
,
"modal-accept"
)))
accept
.
find_element_by_css_selector
(
"form[method*='POST']"
)
.
submit
()
except
:
logger
.
exception
(
"Selenium couldn't find the modal at retry"
)
raise
Exception
(
"Cannot find the modal"
)
except
:
logger
.
exception
(
"Selenium couldn't find the specified css element"
)
raise
Exception
(
"Cannot find the css element"
)
except
:
except
:
logger
.
exception
(
"Selenium cannot accept the"
logger
.
exception
(
"Selenium cannot accept the"
" operation confirmation"
)
" operation confirmation"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment