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
bbd34235
Commit
bbd34235
authored
Jun 04, 2013
by
JonahStanley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made finding place to click a bit nicer
parent
7f2fa8ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
cms/djangoapps/contentstore/features/advanced-settings.py
+4
-11
No files found.
cms/djangoapps/contentstore/features/advanced-settings.py
View file @
bbd34235
...
@@ -42,12 +42,8 @@ def edit_the_value_of_a_policy_key(step):
...
@@ -42,12 +42,8 @@ def edit_the_value_of_a_policy_key(step):
It is hard to figure out how to get into the CodeMirror
It is hard to figure out how to get into the CodeMirror
area, so cheat and do it from the policy key field :)
area, so cheat and do it from the policy key field :)
"""
"""
#world.css_find(".CodeMirror")[12].click()
world
.
css_find
(
".CodeMirror"
)[
get_index_of
(
DISPLAY_NAME_KEY
)]
.
click
()
all_mirrors
=
world
.
css_find
(
".CodeMirror"
)
g
=
world
.
css_find
(
"div.CodeMirror.CodeMirror-focused > div > textarea"
)
for
codeMirror
in
all_mirrors
:
if
codeMirror
.
text
==
DISPLAY_NAME_VALUE
:
codeMirror
.
click
()
g
=
world
.
css_find
(
"div.CodeMirror.CodeMirror-focused > div > textarea"
)[
0
]
g
.
_element
.
send_keys
(
Keys
.
ARROW_LEFT
,
' '
,
'X'
)
g
.
_element
.
send_keys
(
Keys
.
ARROW_LEFT
,
' '
,
'X'
)
...
@@ -129,11 +125,8 @@ def get_display_name_value():
...
@@ -129,11 +125,8 @@ def get_display_name_value():
def
change_display_name_value
(
step
,
new_value
):
def
change_display_name_value
(
step
,
new_value
):
all_mirrors
=
world
.
css_find
(
".CodeMirror"
)
world
.
css_find
(
".CodeMirror"
)[
get_index_of
(
DISPLAY_NAME_KEY
)]
.
click
()
for
codeMirror
in
all_mirrors
:
g
=
world
.
css_find
(
"div.CodeMirror.CodeMirror-focused > div > textarea"
)
if
codeMirror
.
text
==
DISPLAY_NAME_VALUE
:
codeMirror
.
click
()
g
=
world
.
css_find
(
"div.CodeMirror.CodeMirror-focused > div > textarea"
)[
0
]
display_name
=
get_display_name_value
()
display_name
=
get_display_name_value
()
for
count
in
range
(
len
(
display_name
)):
for
count
in
range
(
len
(
display_name
)):
g
.
_element
.
send_keys
(
Keys
.
END
,
Keys
.
BACK_SPACE
)
g
.
_element
.
send_keys
(
Keys
.
END
,
Keys
.
BACK_SPACE
)
...
...
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