@@ -24,6 +24,7 @@ class SeleniumBrowser(Plugin):
2424 self.options.demo_sleep -- Selenium action delay in DemoMode (--demo_sleep)
2525 self.options.highlights -- # of highlight animations shown (--highlights)
2626 self.options.message_duration -- Messenger alert time (--message_duration)
27+ self.options.js_checking_on -- option to check for js errors (--check_js)
2728 self.options.ad_block -- the option to block some display ads (--ad_block)
2829 self.options.verify_delay -- delay before MasterQA checks (--verify_delay)
2930 self.options.timeout_multiplier -- increase defaults (--timeout_multiplier)
@@ -100,6 +101,12 @@ def options(self, parser, env):
100101 help = """Setting this overrides the default time that
101102 messenger notifications remain visible when reaching
102103 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.""" )
103110 parser .add_option (
104111 '--ad_block' , action = "store_true" ,
105112 dest = 'ad_block_on' ,
@@ -137,6 +144,7 @@ def beforeTest(self, test):
137144 test .test .demo_sleep = self .options .demo_sleep
138145 test .test .highlights = self .options .highlights
139146 test .test .message_duration = self .options .message_duration
147+ test .test .js_checking_on = self .options .js_checking_on
140148 test .test .ad_block_on = self .options .ad_block_on
141149 test .test .verify_delay = self .options .verify_delay # MasterQA
142150 test .test .timeout_multiplier = self .options .timeout_multiplier
0 commit comments