# Path: webdriverwrapper/exceptions.py
# def _create_exception_msg(
#         id_=None, class_name=None, name=None, tag_name=None,
#         parent_id=None, parent_class_name=None, parent_name=None, parent_tag_name=None,
#         text=None, xpath=None, css_selector=None, url=None,
#         driver=None,
# ):
# def _create_exception_msg_tag(
#         id_=None, class_name=None, name=None, tag_name=None,
#         parent_id=None, parent_class_name=None, parent_name=None, parent_tag_name=None,
#         text=None, xpath=None, css_selector=None,
# ):
# def _create_exception_msg_tag_element(id_=None, class_name=None, name=None, tag_name=None, text=None, xpath=None, css_selector=None):
# def _get_suggestion(driver, id_=None, class_name=None, name=None):
# def _find_best_suggestion(value, items):
#     def __init__(self, url, msg):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, url, error_page, expected_error_page, allowed_error_pages, traceback=None):
#     def __init__(self, url, error_messages, expected_error_messages, allowed_error_messages):
#     def __init__(self, url, js_errors):
#     def __init__(self, url, info_messages, expected_info_messages, allowed_info_messages):
# class WebdriverWrapperException(Exception):
# class ErrorPageException(WebdriverWrapperException):
# class ErrorMessagesException(WebdriverWrapperException):
# class JSErrorsException(WebdriverWrapperException):
# class InfoMessagesException(WebdriverWrapperException):


import pytest
from webdriverwrapper.exceptions import NoSuchElementException



def test_fill_out(driver_form):
    driver_form.get_elm('form').fill_out({
        'text': 'text',
        'textarea': 'text',
        'checkbox_1': True,
        'checkbox_2': False,
        'radio': 'value1',
        'select': 'value1',
        'multiselect': ['value1', 'value2'],
    })


def test_nosuchelement(driver_form):

# Path: webdriverwrapper/exceptions.py
# def _create_exception_msg(
#         id_=None, class_name=None, name=None, tag_name=None,
#         parent_id=None, parent_class_name=None, parent_name=None, parent_tag_name=None,
#         text=None, xpath=None, css_selector=None, url=None,
#         driver=None,
# ):
# def _create_exception_msg_tag(
#         id_=None, class_name=None, name=None, tag_name=None,
#         parent_id=None, parent_class_name=None, parent_name=None, parent_tag_name=None,
#         text=None, xpath=None, css_selector=None,
# ):
# def _create_exception_msg_tag_element(id_=None, class_name=None, name=None, tag_name=None, text=None, xpath=None, css_selector=None):
# def _get_suggestion(driver, id_=None, class_name=None, name=None):
# def _find_best_suggestion(value, items):
#     def __init__(self, url, msg):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, url, error_page, expected_error_page, allowed_error_pages, traceback=None):
#     def __init__(self, url, error_messages, expected_error_messages, allowed_error_messages):
#     def __init__(self, url, js_errors):
#     def __init__(self, url, info_messages, expected_info_messages, allowed_info_messages):
# class WebdriverWrapperException(Exception):
# class ErrorPageException(WebdriverWrapperException):
# class ErrorMessagesException(WebdriverWrapperException):
# class JSErrorsException(WebdriverWrapperException):
# class InfoMessagesException(WebdriverWrapperException):


# Path: tests/test_forms.py
import pytest
from webdriverwrapper.exceptions import NoSuchElementException




def test_fill_out(driver_form):
    driver_form.get_elm('form').fill_out({
        'text': 'text',
        'textarea': 'text',
        'checkbox_1': True,
        'checkbox_2': False,
        'radio': 'value1',
        'select': 'value1',
        'multiselect': ['value1', 'value2'],
    })


def test_nosuchelement(driver_form):

    with pytest.raises(NoSuchElementException) as excinfo: