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_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)
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,
)
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,
)
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,
)
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)
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,
)