@@ -24,6 +24,7 @@ class SeleniumBrowser(Plugin):
24
24
self.options.demo_sleep -- Selenium action delay in DemoMode (--demo_sleep)
25
25
self.options.highlights -- # of highlight animations shown (--highlights)
26
26
self.options.message_duration -- Messenger alert time (--message_duration)
27
+ self.options.js_checking_on -- option to check for js errors (--check_js)
27
28
self.options.ad_block -- the option to block some display ads (--ad_block)
28
29
self.options.verify_delay -- delay before MasterQA checks (--verify_delay)
29
30
self.options.timeout_multiplier -- increase defaults (--timeout_multiplier)
@@ -100,6 +101,12 @@ def options(self, parser, env):
100
101
help = """Setting this overrides the default time that
101
102
messenger notifications remain visible when reaching
102
103
assert statements during Demo Mode.""" )
104
+ parser .add_option (
105
+ '--check_js' , action = "store_true" ,
106
+ dest = 'js_checking_on' ,
107
+ default = False ,
108
+ help = """The option to check for Javascript errors after
109
+ every page load.""" )
103
110
parser .add_option (
104
111
'--ad_block' , action = "store_true" ,
105
112
dest = 'ad_block_on' ,
@@ -137,6 +144,7 @@ def beforeTest(self, test):
137
144
test .test .demo_sleep = self .options .demo_sleep
138
145
test .test .highlights = self .options .highlights
139
146
test .test .message_duration = self .options .message_duration
147
+ test .test .js_checking_on = self .options .js_checking_on
140
148
test .test .ad_block_on = self .options .ad_block_on
141
149
test .test .verify_delay = self .options .verify_delay # MasterQA
142
150
test .test .timeout_multiplier = self .options .timeout_multiplier
0 commit comments