Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
21c15d8f
Commit
21c15d8f
authored
Mar 04, 2013
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Click in the upper left of an element instead of the middle.
parent
3cec8f1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
cms/djangoapps/contentstore/features/common.py
+7
-0
No files found.
cms/djangoapps/contentstore/features/common.py
View file @
21c15d8f
...
...
@@ -96,6 +96,7 @@ def assert_css_with_text(css, text):
def
css_click
(
css
):
'''
<<<<<<< HEAD
First try to use the regular click method,
but if clicking in the middle of an element
doesn't work it might be that it thinks some other
...
...
@@ -106,6 +107,12 @@ def css_click(css):
world
.
browser
.
find_by_css
(
css
)
.
first
.
click
()
except
WebDriverException
,
e
:
css_click_at
(
css
)
=======
Rather
than
click
in
the
middle
of
an
element
,
click
in
the
upper
left
'''
css_click_at(css)
>>>>>>> Click in the upper left of an element instead of the middle.
def css_click_at(css, x=10, y=10):
...
...
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