@@ -26,34 +26,31 @@ def chromedriver_bin():
26
26
service = webdriver .chrome .service .Service ()
27
27
options = webdriver .ChromeOptions ()
28
28
options .browser_version = 'stable'
29
- yield webdriver .common .driver_finder .DriverFinder (). get_path ( service = service , options = options )
29
+ yield webdriver .common .driver_finder .DriverFinder (service = service , options = options ). get_driver_path ( )
30
30
31
31
32
32
@pytest .fixture (scope = 'function' )
33
33
def chrome_bin ():
34
34
service = webdriver .chrome .service .Service ()
35
35
options = webdriver .ChromeOptions ()
36
36
options .browser_version = 'stable'
37
- webdriver .common .driver_finder .DriverFinder ().get_path (service = service , options = options )
38
- yield options .binary_location
37
+ yield webdriver .common .driver_finder .DriverFinder (service = service , options = options ).get_browser_path ()
39
38
40
39
41
40
@pytest .fixture (scope = 'function' )
42
41
def edge_bin ():
43
42
service = webdriver .edge .service .Service ()
44
43
options = webdriver .EdgeOptions ()
45
44
options .browser_version = 'stable'
46
- webdriver .common .driver_finder .DriverFinder ().get_path (service = service , options = options )
47
- yield options .binary_location
45
+ yield webdriver .common .driver_finder .DriverFinder (service = service , options = options ).get_browser_path ()
48
46
49
47
50
48
@pytest .fixture (scope = 'function' )
51
49
def firefox_bin ():
52
50
service = webdriver .firefox .service .Service ()
53
51
options = webdriver .FirefoxOptions ()
54
52
options .browser_version = 'stable'
55
- webdriver .common .driver_finder .DriverFinder ().get_path (service = service , options = options )
56
- yield options .binary_location
53
+ yield webdriver .common .driver_finder .DriverFinder (service = service , options = options ).get_browser_path ()
57
54
58
55
59
56
@pytest .fixture (scope = 'function' )
0 commit comments