File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 43
43
checkCaptchaSelector = "MainLayout"
44
44
checkVideoSelector = "VideoPlayer"
45
45
checkLectureSelector = "styles_Lecture"
46
- checkQuizSelector = "StartQuizOverview-buttons "
46
+ checkQuizSelector = "StartQuizOverview"
47
47
contentSelector = "styles_IFrame"
48
48
checkExamSelector = "StartExamOverview"
49
49
@@ -520,6 +520,9 @@ def work():
520
520
if len (quiz ) != 0 :
521
521
jumpNext = driver .find_element (By .CLASS_NAME , skipQuizBtnSelector )
522
522
jumpNext .click ()
523
+ popup = driver .find_elements (By .XPATH , f"//*[contains(@class, 'Button-module_Button--secondary_')]" )
524
+ if popup :
525
+ popup [0 ].click ()
523
526
else :
524
527
content = driver .find_elements (
525
528
By .XPATH , f"//*[contains(@class, '{ contentSelector } ')]"
@@ -607,11 +610,10 @@ def work():
607
610
)
608
611
else :
609
612
print (e )
610
- finally :
611
- input ("Press enter to exit" )
612
613
613
614
614
615
if __name__ == "__main__" :
615
616
# Pyinstaller fix
616
617
multiprocessing .freeze_support ()
617
618
main ()
619
+ input ("Press enter to exit" )
You can’t perform that action at this time.
0 commit comments