Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could add the match for https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/support/expected_conditions.py #6452

Closed
mansonami opened this issue Sep 27, 2018 · 3 comments
Labels

Comments

@mansonami
Copy link

class text_to_be_present_in_element_value_match(object):
"""
An expectation for checking if the given text is present in the element's
locator, text
"""
def init(self, locator, text_):
self.locator = locator
self.text = text_

def __call__(self, driver):
    try:
        element_text = _find_element(driver,
                                     self.locator).get_attribute("value")
        if element_text:
            str = re.findall(self.text, element_text)
            return str
        else:
            return False
    except StaleElementReferenceException:
            return False
@barancev barancev added the C-py label Oct 3, 2018
@diemol
Copy link
Member

diemol commented May 21, 2020

Not clear what this issue tries to tell us, please open a new one with all the required information from the template. If this was a question, please consider:

@diemol diemol closed this as completed May 21, 2020
@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

1 similar comment
@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants