-
Notifications
You must be signed in to change notification settings - Fork 0
/
wodify.py
40 lines (26 loc) · 1.05 KB
/
wodify.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from wodify_variables import username, password
import elements
from exercises import exercises
import time
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.common.exceptions import TimeoutException
browser = webdriver.Chrome()
wodify = elements.Login()
wodify.login(browser, username, password)
reports = elements.Reports()
# testing metcons
reports.pull_reports(browser, 'metcon', exercises['metcon'], '10/08/2018', '10/21/2018')
browser.find_element_by_link_text('PERFORMANCE RESULTS').click()
# testing lifts
reports.pull_reports(browser, 'weightlifting', exercises['weightlifting'], '04/01/2018', '10/21/2018')
# total attendance history
reports.attendance_report(browser, '08/13/2018', '10/07/2018')
# athlete and member details
reports.athlete_report(browser)
# users (must be run alone at this time)
# reports.user_report(browser)
browser.quit()