Skip to content

Commit

Permalink
fixed hard coded details
Browse files Browse the repository at this point in the history
  • Loading branch information
sarsharma authored Feb 24, 2021
1 parent 6445a12 commit de6185d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions attendance_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def mark_attendance(participant_name, participant_reg_no):
club_or_chapter_dropdown=web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[1]/div[1]')
club_or_chapter_dropdown.click()
time.sleep(0.8)
club_or_chapter_option = web.find_elements_by_xpath("//div//span[contains(., 'Club')]")
club_or_chapter_option = web.find_elements_by_xpath("//div//span[contains(., "+"'"+club_or_chapter+"'"+")]")
for i in club_or_chapter_option:
try:
i.click()
Expand All @@ -33,7 +33,7 @@ def mark_attendance(participant_name, participant_reg_no):
club_or_chapter_name_dropdown=web.find_element_by_xpath('//*[@id="mG61Hd"]/div[2]/div/div[2]/div[3]/div/div/div[2]/div/div[1]/div[1]/div[1]')
club_or_chapter_name_dropdown.click()
time.sleep(0.8)
club_or_chapter_name_option = web.find_elements_by_xpath("//div//span[contains(., 'Dance club')]")
club_or_chapter_name_option = web.find_elements_by_xpath("//div//span[contains(., "+"'"+club_or_chapter_name+"'"+")]")
for i in club_or_chapter_name_option:
try:
i.click()
Expand Down Expand Up @@ -67,4 +67,4 @@ def mark_attendance(participant_name, participant_reg_no):

submit_message=web.find_element_by_css_selector('.freebirdFormviewerViewResponseConfirmationMessage')
if(submit_message.text=="Your response has been recorded."):
print("Attendance marked for", participant_name)
print("Attendance marked for", participant_name)

0 comments on commit de6185d

Please sign in to comment.