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
5f088ba4
Commit
5f088ba4
authored
Aug 22, 2012
by
Mark L. Chang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mchang/acceptance-testing' of github.com:MITx/mitx into mchang/acceptance-testing
parents
3c450ac2
342b3ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lms/djangoapps/acceptance_testing/features/static/accordion.py
+2
-0
No files found.
lms/djangoapps/acceptance_testing/features/static/accordion.py
View file @
5f088ba4
...
...
@@ -17,10 +17,12 @@ def i_should_see_an_element_with_class_of_classname(step,classname):
@step
(
u'I click on every item in every week of the course'
)
def
i_click_on_every_item_in_every_week_of_the_course
(
step
):
wait_until_id_renders
(
'accordion'
,
2
)
chapters
=
world
.
browser
.
find_elements_by_xpath
(
"//*[@id='accordion']//nav//h3"
)
num_chapters
=
len
(
chapters
)
k
=
1
while
k
<=
num_chapters
:
world
.
browser
.
find_element_by_xpath
(
"//*[@id='accordion']//nav//h3["
+
str
(
k
)
+
"]"
)
.
click
()
wait_until_class_renders
(
'p'
,
1
)
k
+=
1
...
...
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