File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,13 @@ def test_chromedriver_matches_chrome(self):
13
13
print ("\n This test is only for Chrome!" )
14
14
print (" (Run with: '--browser=chrome')" )
15
15
self .skip ("This test is only for Chrome!" )
16
- driver_capabilities = self .driver .__dict__ [ " capabilities" ]
16
+ driver_capabilities = self .driver .capabilities
17
17
if "version" in driver_capabilities :
18
18
chrome_version = driver_capabilities ["version" ]
19
19
else :
20
20
chrome_version = driver_capabilities ["browserVersion" ]
21
21
major_chrome_version = chrome_version .split ('.' )[0 ]
22
- chrome_dict = self .driver .__dict__ [ " capabilities" ] ["chrome" ]
22
+ chrome_dict = self .driver .capabilities ["chrome" ]
23
23
chromedriver_version = chrome_dict ["chromedriverVersion" ]
24
24
chromedriver_version = chromedriver_version .split (' ' )[0 ]
25
25
major_chromedriver_version = chromedriver_version .split ('.' )[0 ]
You can’t perform that action at this time.
0 commit comments