How to use the splinter.driver.xpath_utils._concat_xpath_from_str function in splinter

To help you get started, we’ve selected a few splinter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cobrateam / splinter / splinter / driver / zopetestbrowser.py View on Github external
def find_by_text(self, text):
        # Add a period to the xpath to search only inside the parent.
        xpath_str = '.{}'.format(_concat_xpath_from_str(text))
        return self.find_by_xpath(xpath_str)
github cobrateam / splinter / splinter / driver / zopetestbrowser.py View on Github external
def find_by_text(self, text):
        xpath_str = _concat_xpath_from_str(text)
        return self.find_by_xpath(
            xpath_str,
            original_find="text",
            original_selector=text,
        )
github cobrateam / splinter / splinter / driver / webdriver / __init__.py View on Github external
def find_by_text(self, text, wait_time=None):
        # Add a period to the xpath to search only inside the parent.
        xpath_str = '.{}'.format(_concat_xpath_from_str(text))
        return self.find_by(
            self._element.find_elements_by_xpath,
            xpath_str,
            original_find="text",
            original_query=text,
            wait_time=wait_time,
        )
github cobrateam / splinter / splinter / driver / webdriver / __init__.py View on Github external
def find_by_text(self, text=None, wait_time=None):
        xpath_str = _concat_xpath_from_str(text)
        return self.find_by_xpath(
            xpath_str,
            original_find="text",
            original_query=text,
            wait_time=wait_time,
        )
github cobrateam / splinter / splinter / driver / lxmldriver.py View on Github external
def find_by_text(self, text):
        # Add a period to the xpath to search only inside the parent.
        xpath_str = '.{}'.format(_concat_xpath_from_str(text))
        return self.find_by_xpath(xpath_str)
github cobrateam / splinter / splinter / driver / lxmldriver.py View on Github external
def find_by_text(self, text):
        xpath_str = _concat_xpath_from_str(text)
        return self.find_by_xpath(
            xpath_str,
            original_find="text",
            original_selector=text,
        )