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
50438c00
Commit
50438c00
authored
Aug 21, 2012
by
Dean Dieker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved accordion back into static
parent
539f1ea2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lms/djangoapps/acceptance_testing/features/static/accordion.feature
+0
-0
lms/djangoapps/acceptance_testing/features/static/accordion.py
+5
-3
No files found.
lms/djangoapps/acceptance_testing/features/accordion.feature
→
lms/djangoapps/acceptance_testing/features/
static/
accordion.feature
View file @
50438c00
File moved
lms/djangoapps/acceptance_testing/features/accordion.py
→
lms/djangoapps/acceptance_testing/features/
static/
accordion.py
View file @
50438c00
...
...
@@ -5,7 +5,6 @@ from selenium.webdriver import ActionChains
from
selenium.webdriver.support.ui
import
WebDriverWait
from
helpers
import
*
import
re
from
courses
import
*
@step
(
u'I should see an element with class of "(.*)" within "(.*)" seconds'
)
...
...
@@ -20,9 +19,12 @@ def i_should_see_an_element_with_class_of_classname(step,classname):
def
i_click_on_every_item_in_every_week_of_the_course
(
step
):
get_courseware
()
weeks
=
world
.
browser
.
find_elements_by_xpath
(
"//*[@id='accordion']//nav//h3"
)
for
week
in
weeks
:
week
.
click
()
numweeks
=
len
(
weeks
)
k
=
1
while
k
<
numweeks
:
world
.
browser
.
find_element_by_xpath
(
"//*[@id='accordion']//nav//h3["
+
str
(
k
)
+
"]"
)
.
click
()
wait_until_class_renders
(
'p'
,
1
)
k
+=
1
nodes
=
world
.
browser
.
find_elements_by_xpath
(
"//*[@id='accordion']//nav//ul[@class='ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content-active']//li"
)
i
=
len
(
nodes
)
j
=
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