-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
169 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
import pytest | ||
from selenium.webdriver.ie.options import Options | ||
from selenium.webdriver.ie.service import Service | ||
|
||
|
||
def driver_kwargs(capabilities, driver_log, driver_path, **kwargs): | ||
def driver_kwargs(ie_options, ie_service, **kwargs): | ||
return {"options": ie_options, "service": ie_service} | ||
|
||
kwargs = {"service_log_path": driver_log} | ||
|
||
if capabilities: | ||
kwargs["capabilities"] = capabilities | ||
if driver_path is not None: | ||
kwargs["executable_path"] = driver_path | ||
return kwargs | ||
@pytest.fixture | ||
def ie_options(): | ||
return Options() | ||
|
||
|
||
@pytest.fixture | ||
def ie_service(driver_path, driver_args, driver_log): | ||
return Service( | ||
executable_path=driver_path, service_args=driver_args, log_output=driver_log | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,25 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
import pytest | ||
from selenium.webdriver.safari.options import Options | ||
from selenium.webdriver.safari.service import Service | ||
|
||
|
||
def driver_kwargs(capabilities, driver_path, **kwargs): | ||
kwargs = {"desired_capabilities": capabilities} | ||
if driver_path is not None: | ||
kwargs["executable_path"] = driver_path | ||
return kwargs | ||
def driver_kwargs(safari_options, safari_service, **kwargs): | ||
return { | ||
"options": safari_options, | ||
"service": safari_service, | ||
} | ||
|
||
|
||
@pytest.fixture | ||
def safari_options(): | ||
return Options() | ||
|
||
|
||
@pytest.fixture | ||
def safari_service(driver_path, driver_args, driver_log): | ||
return Service( | ||
executable_path=driver_path, service_args=driver_args, log_output=driver_log | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.