@@ -43,21 +43,21 @@ def test_demo_site(self):
43
43
44
44
# Verify that a slider control updates a progress bar
45
45
self .assert_element ('progress[value="50"]' )
46
- self .press_right_arrow ( "#myslider " , times = 5 )
46
+ self .set_value ( "input#mySlider " , "100" )
47
47
self .assert_element ('progress[value="100"]' )
48
48
49
49
# Verify that a "select" option updates a meter bar
50
50
self .assert_element ('meter[value="0.25"]' )
51
51
self .select_option_by_text ("#mySelect" , "Set to 75%" )
52
52
self .assert_element ('meter[value="0.75"]' )
53
53
54
- # Assert an element located inside an iFrame
54
+ # Assert an element located inside an iframe
55
55
self .assert_false (self .is_element_visible ("img" ))
56
56
self .switch_to_frame ("#myFrame1" )
57
57
self .assert_true (self .is_element_visible ("img" ))
58
58
self .switch_to_default_content ()
59
59
60
- # Assert text located inside an iFrame
60
+ # Assert text located inside an iframe
61
61
self .assert_false (self .is_text_visible ("iFrame Text" ))
62
62
self .switch_to_frame ("#myFrame2" )
63
63
self .assert_true (self .is_text_visible ("iFrame Text" ))
@@ -84,7 +84,7 @@ def test_demo_site(self):
84
84
self .assert_true (self .is_selected ("#checkBox3" ))
85
85
self .assert_true (self .is_selected ("#checkBox4" ))
86
86
87
- # Verify that clicking an iFrame checkbox selects it
87
+ # Verify that clicking an iframe checkbox selects it
88
88
self .assert_false (self .is_element_visible (".fBox" ))
89
89
self .switch_to_frame ("#myFrame3" )
90
90
self .assert_true (self .is_element_visible (".fBox" ))
@@ -113,6 +113,7 @@ def test_demo_site(self):
113
113
self .highlight ("h2" )
114
114
115
115
# Actions with Demo Mode enabled
116
- self .activate_demo_mode ()
116
+ if self .headed :
117
+ self .activate_demo_mode ()
117
118
self .type ("input" , "Have a Nice Day!" )
118
119
self .assert_text ("SeleniumBase" , "h2" )
0 commit comments