File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -486,7 +486,7 @@ def play_hopscotch_tour(
486
486
now_ms = time .time () * 1000.0
487
487
if now_ms >= stop_ms :
488
488
if current_step == latest_step :
489
- driver .execute_script ("return $tour.nextStep()" )
489
+ driver .execute_script ("$tour.nextStep()" )
490
490
try :
491
491
latest_step = driver .execute_script (
492
492
"return $tour.getCurrStepNum()" )
@@ -604,7 +604,10 @@ def play_introjs_tour(
604
604
now_ms = time .time () * 1000.0
605
605
if now_ms >= stop_ms :
606
606
if current_step == latest_step :
607
- driver .execute_script ("return $tour.nextStep()" )
607
+ try :
608
+ driver .execute_script ("$tour.nextStep()" )
609
+ except Exception :
610
+ driver .execute_script ("$tour.exit()" )
608
611
try :
609
612
latest_step = driver .execute_script (
610
613
"return $tour._currentStep" )
You can’t perform that action at this time.
0 commit comments