@@ -17,10 +17,12 @@ class SeleniumBrowser(Plugin):
17
17
self.options.browser -- the browser to use (--browser)
18
18
self.options.server -- the server used by the test (--server)
19
19
self.options.port -- the port used by the test (--port)
20
+ self.options.proxy -- designates the proxy server:port to use. (--proxy)
20
21
self.options.headless -- the option to run headlessly (--headless)
21
22
self.options.demo_mode -- the option to slow down Selenium (--demo_mode)
22
23
self.options.demo_sleep -- Selenium action delay in DemoMode (--demo_sleep)
23
24
self.options.highlights -- # of highlight animations shown (--highlights)
25
+ self.options.ad_block -- the option to block some display ads (--ad_block)
24
26
self.options.verify_delay -- delay before MasterQA checks (--verify_delay)
25
27
self.options.timeout_multiplier -- increase defaults (--timeout_multiplier)
26
28
"""
@@ -66,7 +68,7 @@ def options(self, parser, env):
66
68
dest = 'headless' ,
67
69
default = False ,
68
70
help = """Using this makes Webdriver run headlessly,
69
- which is useful inside a Linux Docker .""" )
71
+ which is required on headless machines .""" )
70
72
parser .add_option (
71
73
'--demo_mode' , action = "store_true" ,
72
74
dest = 'demo_mode' ,
@@ -109,9 +111,6 @@ def configure(self, options, conf):
109
111
self .headless_active = False # Default setting
110
112
111
113
def beforeTest (self , test ):
112
- """ Running Selenium locally will be handled differently
113
- from how Selenium is run remotely, such as from Jenkins. """
114
-
115
114
test .test .browser = self .options .browser
116
115
test .test .headless = self .options .headless
117
116
test .test .servername = self .options .servername
0 commit comments