# Path: saunter/SaunterWebDriver.py
# class SaunterWebDriver(webdriver.Remote):
#     def __init__(self, **kwargs):
#         super(SaunterWebDriver, self).__init__(**kwargs)
# 
#     def find_element_by_locator(self, locator):
#         locator_type = locator[:locator.find("=")]
#         if locator_type == "":
#             raise saunter.exceptions.InvalidLocatorString(locator)
#         locator_value = locator[locator.find("=") + 1:]
#         if locator_type == 'class':
#             return WebElement(self.find_element_by_class_name(locator_value))
#         elif locator_type == 'css':
#             return WebElement(self.find_element_by_css_selector(locator_value))
#         elif locator_type == 'id':
#             return WebElement(self.find_element_by_id(locator_value))
#         elif locator_type == 'link':
#             return WebElement(self.find_element_by_link_text(locator_value))
#         elif locator_type == 'name':
#             return WebElement(self.find_element_by_name(locator_value))
#         elif locator_type == 'plink':
#             return WebElement(self.find_element_by_partial_link_text(locator_value))
#         elif locator_type == 'tag':
#             return WebElement(self.find_element_by_tag_name(locator_value))
#         elif locator_type == 'xpath':
#             return WebElement(self.find_element_by_xpath(locator_value))
#         else:
#             raise saunter.exceptions.InvalidLocatorString(locator)
# 
#     def find_elements_by_locator(self, locator):
#         locator_type = locator[:locator.find("=")]
#         if locator_type == "":
#             raise saunter.exceptions.InvalidLocatorString(locator)
#         locator_value = locator[locator.find("=") + 1:]
#         if locator_type == 'class':
#             elements = self.find_elements_by_class_name(locator_value)
#         elif locator_type == 'css':
#             elements = self.find_elements_by_css_selector(locator_value)
#         elif locator_type == 'id':
#             elements = self.find_elements_by_id(locator_value)
#         elif locator_type == 'link':
#             elements = self.find_elements_by_link_text(locator_value)
#         elif locator_type == 'name':
#             elements = self.find_elements_by_name(locator_value)
#         elif locator_type == 'plink':
#             elements = self.find_elements_by_partial_link_text(locator_value)
#         elif locator_type == 'tag':
#             elements = self.find_elements_by_tag_name(locator_value)
#         elif locator_type == 'xpath':
#             elements = self.find_elements_by_xpath(locator_value)
#         else:
#             raise saunter.exceptions.InvalidLocatorString(locator)
# 
#         return [WebElement(e) for e in elements]
# 
#     # @deprecated
#     @classmethod
#     def click(cls, locator):
#         driver = se_wrapper().connection
# 
#         e = cls.find_element_by_locator(locator)
#         e.click()
# 
#     def is_element_present(self, locator):
#         try:
#             self.find_element_by_locator(locator)
#             return True
#         except NoSuchElementException:
#             return False
# 
#     def is_visible(self, locator):
#         return self.find_element_by_locator(locator).is_displayed()


from saunter.SaunterWebDriver import SaunterWebDriver
"""
=============
WebDriver
=============
"""



# Path: saunter/SaunterWebDriver.py
# class SaunterWebDriver(webdriver.Remote):
#     def __init__(self, **kwargs):
#         super(SaunterWebDriver, self).__init__(**kwargs)
# 
#     def find_element_by_locator(self, locator):
#         locator_type = locator[:locator.find("=")]
#         if locator_type == "":
#             raise saunter.exceptions.InvalidLocatorString(locator)
#         locator_value = locator[locator.find("=") + 1:]
#         if locator_type == 'class':
#             return WebElement(self.find_element_by_class_name(locator_value))
#         elif locator_type == 'css':
#             return WebElement(self.find_element_by_css_selector(locator_value))
#         elif locator_type == 'id':
#             return WebElement(self.find_element_by_id(locator_value))
#         elif locator_type == 'link':
#             return WebElement(self.find_element_by_link_text(locator_value))
#         elif locator_type == 'name':
#             return WebElement(self.find_element_by_name(locator_value))
#         elif locator_type == 'plink':
#             return WebElement(self.find_element_by_partial_link_text(locator_value))
#         elif locator_type == 'tag':
#             return WebElement(self.find_element_by_tag_name(locator_value))
#         elif locator_type == 'xpath':
#             return WebElement(self.find_element_by_xpath(locator_value))
#         else:
#             raise saunter.exceptions.InvalidLocatorString(locator)
# 
#     def find_elements_by_locator(self, locator):
#         locator_type = locator[:locator.find("=")]
#         if locator_type == "":
#             raise saunter.exceptions.InvalidLocatorString(locator)
#         locator_value = locator[locator.find("=") + 1:]
#         if locator_type == 'class':
#             elements = self.find_elements_by_class_name(locator_value)
#         elif locator_type == 'css':
#             elements = self.find_elements_by_css_selector(locator_value)
#         elif locator_type == 'id':
#             elements = self.find_elements_by_id(locator_value)
#         elif locator_type == 'link':
#             elements = self.find_elements_by_link_text(locator_value)
#         elif locator_type == 'name':
#             elements = self.find_elements_by_name(locator_value)
#         elif locator_type == 'plink':
#             elements = self.find_elements_by_partial_link_text(locator_value)
#         elif locator_type == 'tag':
#             elements = self.find_elements_by_tag_name(locator_value)
#         elif locator_type == 'xpath':
#             elements = self.find_elements_by_xpath(locator_value)
#         else:
#             raise saunter.exceptions.InvalidLocatorString(locator)
# 
#         return [WebElement(e) for e in elements]
# 
#     # @deprecated
#     @classmethod
#     def click(cls, locator):
#         driver = se_wrapper().connection
# 
#         e = cls.find_element_by_locator(locator)
#         e.click()
# 
#     def is_element_present(self, locator):
#         try:
#             self.find_element_by_locator(locator)
#             return True
#         except NoSuchElementException:
#             return False
# 
#     def is_visible(self, locator):
#         return self.find_element_by_locator(locator).is_displayed()


# Path: saunter/_defaults/tailored/webdriver.py
from saunter.SaunterWebDriver import SaunterWebDriver

"""
=============
WebDriver
=============
"""



class WebDriver(SaunterWebDriver):