Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def find_by_name(self, name):
return WebDriverElement(self.driver.find_element_by_name(name))
def find_by_xpath(self, xpath):
return WebDriverElement(self.driver.find_element_by_xpath(xpath))
def find_by_tag(self, tag):
return WebDriverElement(self.driver.find_element_by_tag_name(tag))
def find_link_by_text(self, text):
return WebDriverElement(self.driver.find_element_by_link_text(text))
def find_by_css_selector(self, css_selector):
selector = CSSSelector(css_selector)
return WebDriverElement(self.driver.find_element_by_xpath(selector.path))