@@ -43,21 +43,21 @@ def test_demo_site(self):
4343
4444 # Verify that a slider control updates a progress bar
4545 self .assert_element ('progress[value="50"]' )
46- self .press_right_arrow ( "#myslider " , times = 5 )
46+ self .set_value ( "input#mySlider " , "100" )
4747 self .assert_element ('progress[value="100"]' )
4848
4949 # Verify that a "select" option updates a meter bar
5050 self .assert_element ('meter[value="0.25"]' )
5151 self .select_option_by_text ("#mySelect" , "Set to 75%" )
5252 self .assert_element ('meter[value="0.75"]' )
5353
54- # Assert an element located inside an iFrame
54+ # Assert an element located inside an iframe
5555 self .assert_false (self .is_element_visible ("img" ))
5656 self .switch_to_frame ("#myFrame1" )
5757 self .assert_true (self .is_element_visible ("img" ))
5858 self .switch_to_default_content ()
5959
60- # Assert text located inside an iFrame
60+ # Assert text located inside an iframe
6161 self .assert_false (self .is_text_visible ("iFrame Text" ))
6262 self .switch_to_frame ("#myFrame2" )
6363 self .assert_true (self .is_text_visible ("iFrame Text" ))
@@ -84,7 +84,7 @@ def test_demo_site(self):
8484 self .assert_true (self .is_selected ("#checkBox3" ))
8585 self .assert_true (self .is_selected ("#checkBox4" ))
8686
87- # Verify that clicking an iFrame checkbox selects it
87+ # Verify that clicking an iframe checkbox selects it
8888 self .assert_false (self .is_element_visible (".fBox" ))
8989 self .switch_to_frame ("#myFrame3" )
9090 self .assert_true (self .is_element_visible (".fBox" ))
@@ -113,6 +113,7 @@ def test_demo_site(self):
113113 self .highlight ("h2" )
114114
115115 # Actions with Demo Mode enabled
116- self .activate_demo_mode ()
116+ if self .headed :
117+ self .activate_demo_mode ()
117118 self .type ("input" , "Have a Nice Day!" )
118119 self .assert_text ("SeleniumBase" , "h2" )
0 commit comments