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

until TypeError: unsupported operand type(s) #8050

Closed
Gadzillion opened this issue Feb 24, 2020 · 3 comments
Closed

until TypeError: unsupported operand type(s) #8050

Gadzillion opened this issue Feb 24, 2020 · 3 comments

Comments

@Gadzillion
Copy link

Gadzillion commented Feb 24, 2020

🐛 Bug Report

I am trying to wait for element clickable.

elements.py

    def wait_for_element_clickable(self, locator: tuple, timeout=25):
        return WebDriverWait(self._driver, timeout).until(
            exp_con.element_to_be_clickable(locator))

login_page.py

    def to_account(self):
            self.wait_for_element_clickable(*LoginPageLocators.ACCOUNT_BUTTON)

ERROR from console

    def until(self, method, message=''):
        """Calls the method provided with the driver as an argument until the \
        return value is not False."""
        screen = None
        stacktrace = None
    
>       end_time = time.time() + self._timeout
E       TypeError: unsupported operand type(s) for +: 'float' and 'str'

Environment

OS: Windows 10
Browser: Chrome
Browser version: 80
Language Bindings version: Python 3.7.5
Selenium Grid version (if applicable): 3.141.59

@ghost ghost added the needs-triaging label Feb 24, 2020
@AutomatedTester
Copy link
Member

AutomatedTester commented Feb 24, 2020 via email

@Gadzillion
Copy link
Author

@AutomatedTester I think I pass it in int type timeout=25

@lock
Copy link

lock bot commented Mar 27, 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 Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants