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

Help Wanted : The web driver is crashing on initialization #205

Open
Asiffarooq93 opened this issue May 10, 2023 · 4 comments
Open

Help Wanted : The web driver is crashing on initialization #205

Asiffarooq93 opened this issue May 10, 2023 · 4 comments

Comments

@Asiffarooq93
Copy link

I have installed Appium, Xcode and Mac 2 driver. When I run the example test given with this repository, the line that creates the webdriver crashes the project.

drv = webdriver.Remote('http://127.0.0.1:4622', options=options)

I have run the Appium doctor and the only missing thing is carthage - which is not mentioned as a requirement for this driver, so I dont think that is needed, this is my first time with appium on Mac. Any help is appreciated, thanks

@KazuCocoa
Copy link
Member

KazuCocoa commented May 11, 2023

Which appium doctor did you use? Perhaps older doctor shows working with npm install @appium/doctor -g command to use proper new one. Carthage is no longer used.

Could you share the full Appium server log?

@Asiffarooq93
Copy link
Author

Hi @KazuCocoa thanks for replying, I am not sure where to find the appium server logs, I am not using a server GUI

Here is the error when I run the tests in bash, I am using appium python client 2.9
I have tried downgrading the urllib3 but that didnt work.
@classmethod
def _validate_timeout(cls, value: _TYPE_TIMEOUT, name: str) -> _TYPE_TIMEOUT:
"""Check that a timeout attribute is valid.

    :param value: The timeout value to validate
    :param name: The name of the timeout attribute to validate. This is
        used to specify in error messages.
    :return: The validated and casted version of the given value.
    :raises ValueError: If it is a numeric value less than or equal to
        zero, or the type is not an integer, float, or None.
    """
    if value is None or value is _DEFAULT_TIMEOUT:
        return value

    if isinstance(value, bool):
        raise ValueError(
            "Timeout cannot be a boolean value. It must "
            "be an int, float or None."
        )
    try:
        float(value)
    except (TypeError, ValueError):
      raise ValueError(
            "Timeout value %s was %s, but it must be an "
            "int, float or None." % (name, value)
        ) from None

E ValueError: Timeout value connect was <object object at 0x10b59c830>, but it must be an int, float or None.

venv/lib/python3.11/site-packages/urllib3/util/timeout.py:156: ValueError.

@KazuCocoa
Copy link
Member

appium/python-client#863 (comment)
You can downgrade the selenium driver version for now.

@Asiffarooq93
Copy link
Author

Thank you so much. I will try that now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants