File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
py/selenium/webdriver/firefox Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 16
16
# under the License.
17
17
18
18
from selenium .common .exceptions import WebDriverException
19
- from selenium .webdriver .common .desired_capabilities import DesiredCapabilities
20
19
from selenium .webdriver .firefox .firefox_profile import FirefoxProfile
21
20
22
21
@@ -87,14 +86,11 @@ def to_capabilities(self):
87
86
88
87
returns a dictionary with everything
89
88
"""
90
- firefox = DesiredCapabilities .FIREFOX .copy ()
91
- firefox_options = self ._firefox_options
89
+ required = {}
92
90
if self .binary_location :
93
- firefox_options ["binary" ] = self .binary_location
91
+ required ["binary" ] = self .binary_location
94
92
if self ._profile :
95
- firefox_options ["profile" ] = self ._profile .encoded
96
- firefox_options ["args" ] = self .arguments
97
-
98
- firefox ["requiredCapabilities" ] = firefox_options
99
-
100
- return firefox
93
+ required ["profile" ] = self ._profile .encoded
94
+ required ["args" ] = self .arguments
95
+ capabilities = {"requiredCapabilities" : required }
96
+ return capabilities
You can’t perform that action at this time.
0 commit comments