# Path: selene/support/conditions/have.py
# def exact_text(value) -> Condition[Element]:
# def text(partial_value) -> Condition[Element]:
# def js_property(name: str, value: str = None):
# def css_property(name: str, value: str = None):
# def attribute(name: str, value: str = None):
# def value(text) -> Condition[Element]:
# def value_containing(partial_text) -> Condition[Element]:
# def css_class(name) -> Condition[Element]:
# def tag(name: str) -> Condition[Element]:
# def tag_containing(name: str) -> Condition[Element]:
# def size(number: int) -> Condition[Collection]:
# def size_less_than(number: int) -> Condition[Collection]:
# def size_less_than_or_equal(number: int) -> Condition[Collection]:
# def size_greater_than(number: int) -> Condition[Collection]:
# def size_at_least(number: int) -> Condition[Collection]:
# def size_greater_than_or_equal(number: int) -> Condition[Collection]:
# def texts(*partial_values: str) -> Condition[Collection]:
# def exact_texts(*values: str) -> Condition[Collection]:
# def url(exact_value: str) -> Condition[Browser]:
# def url_containing(partial_value: str) -> Condition[Browser]:
# def title(exact_value: str) -> Condition[Browser]:
# def title_containing(partial_value: str) -> Condition[Browser]:
# def tabs_number(value: int) -> Condition[Browser]:
# def tabs_number_less_than(value: int) -> Condition[Browser]:
# def tabs_number_less_than_or_equal(value: int) -> Condition[Browser]:
# def tabs_number_greater_than(value: int) -> Condition[Browser]:
# def tabs_number_greater_than_or_equal(value: int) -> Condition[Browser]:
# def js_returned_true(script_to_return_bool: str) -> Condition[Browser]:
# def js_returned(expected: Any, script: str, *args) -> Condition[Browser]:
# 
# Path: selene/support/shared/browser.py
# class SharedBrowser(Browser):
#         class CallableString(str):
#     def __init__(self, config: SharedConfig):
#     def config(self) -> SharedConfig:
#     def with_(self, config: Config = None, **config_as_kwargs) -> Browser:
#     def open(self, relative_or_absolute_url: str):
#     def driver(self) -> WebDriver:
#         def return_driver(this) -> WebDriver:
#     def save_screenshot(self, file: str = None):
#     def last_screenshot(self) -> str:
#     def latest_screenshot(self) -> str:
#             def __new__(cls, value):
#             def __call__(self, *args, **kwargs):
#             def __bool__(self):
#     def save_page_source(self, file: str = None) -> Optional[str]:
#     def last_page_source(self) -> str:
#     def latest_page_source(self):
#     def quit(self) -> None:
#     def quit_driver(self):
#     def close(self):
#     def set_driver(self, webdriver: WebDriver):
#     def open_url(self, absolute_or_relative_url):
#     def elements(self, css_or_xpath_or_by: Union[str, tuple]) -> Collection:
#     def wait_to(self, webdriver_condition, timeout=None, polling=None):
#     def execute_script(self, script, *args):
#     def title(self):
#     def take_screenshot(self, path=None, filename=None):
# 
# Path: tests/acceptance/mixed_driver_management/todomvc.py



from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType
from selene.support.conditions import have
from selene.support.shared import browser
from tests.acceptance.mixed_driver_management import todomvc
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.




def setup_module():
    browser.config.driver = webdriver.Chrome(
        service=Service(
            ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
        )
    )


def teardown_module():

# Path: selene/support/conditions/have.py
# def exact_text(value) -> Condition[Element]:
# def text(partial_value) -> Condition[Element]:
# def js_property(name: str, value: str = None):
# def css_property(name: str, value: str = None):
# def attribute(name: str, value: str = None):
# def value(text) -> Condition[Element]:
# def value_containing(partial_text) -> Condition[Element]:
# def css_class(name) -> Condition[Element]:
# def tag(name: str) -> Condition[Element]:
# def tag_containing(name: str) -> Condition[Element]:
# def size(number: int) -> Condition[Collection]:
# def size_less_than(number: int) -> Condition[Collection]:
# def size_less_than_or_equal(number: int) -> Condition[Collection]:
# def size_greater_than(number: int) -> Condition[Collection]:
# def size_at_least(number: int) -> Condition[Collection]:
# def size_greater_than_or_equal(number: int) -> Condition[Collection]:
# def texts(*partial_values: str) -> Condition[Collection]:
# def exact_texts(*values: str) -> Condition[Collection]:
# def url(exact_value: str) -> Condition[Browser]:
# def url_containing(partial_value: str) -> Condition[Browser]:
# def title(exact_value: str) -> Condition[Browser]:
# def title_containing(partial_value: str) -> Condition[Browser]:
# def tabs_number(value: int) -> Condition[Browser]:
# def tabs_number_less_than(value: int) -> Condition[Browser]:
# def tabs_number_less_than_or_equal(value: int) -> Condition[Browser]:
# def tabs_number_greater_than(value: int) -> Condition[Browser]:
# def tabs_number_greater_than_or_equal(value: int) -> Condition[Browser]:
# def js_returned_true(script_to_return_bool: str) -> Condition[Browser]:
# def js_returned(expected: Any, script: str, *args) -> Condition[Browser]:
# 
# Path: selene/support/shared/browser.py
# class SharedBrowser(Browser):
#         class CallableString(str):
#     def __init__(self, config: SharedConfig):
#     def config(self) -> SharedConfig:
#     def with_(self, config: Config = None, **config_as_kwargs) -> Browser:
#     def open(self, relative_or_absolute_url: str):
#     def driver(self) -> WebDriver:
#         def return_driver(this) -> WebDriver:
#     def save_screenshot(self, file: str = None):
#     def last_screenshot(self) -> str:
#     def latest_screenshot(self) -> str:
#             def __new__(cls, value):
#             def __call__(self, *args, **kwargs):
#             def __bool__(self):
#     def save_page_source(self, file: str = None) -> Optional[str]:
#     def last_page_source(self) -> str:
#     def latest_page_source(self):
#     def quit(self) -> None:
#     def quit_driver(self):
#     def close(self):
#     def set_driver(self, webdriver: WebDriver):
#     def open_url(self, absolute_or_relative_url):
#     def elements(self, css_or_xpath_or_by: Union[str, tuple]) -> Collection:
#     def wait_to(self, webdriver_condition, timeout=None, polling=None):
#     def execute_script(self, script, *args):
#     def title(self):
#     def take_screenshot(self, path=None, filename=None):
# 
# Path: tests/acceptance/mixed_driver_management/todomvc.py



# Path: tests/acceptance/mixed_driver_management/a_shared_browser_with_custom_driver_init_and_quit_test.py
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
from webdriver_manager.utils import ChromeType
from selene.support.conditions import have
from selene.support.shared import browser
from tests.acceptance.mixed_driver_management import todomvc

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.




def setup_module():
    browser.config.driver = webdriver.Chrome(
        service=Service(
            ChromeDriverManager(chrome_type=ChromeType.CHROMIUM).install()
        )
    )


def teardown_module():

    browser.quit()