各位大佬请问这要怎么处理,Appium 是正常运行的但是用Python Remote就异常。求助

各位大佬请问这要怎么处理,Appium 是正常运行的但是用Python Remote就异常。求助_第1张图片

 F:\Project\ui_ByAppium\venv\Scripts\python.exe F:\Project\ui_ByAppium\main.py 
Traceback (most recent call last):
  File "F:\Project\ui_ByAppium\main.py", line 3, in
    driver=Remote(command_executor="http://127.0.0.1:4723/wd/hub",desired_capabilities=desired_capabilities)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\appium\webdriver\webdriver.py", line 234, in __init__
    super().__init__(
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in __init__
    self.start_session(capabilities, browser_profile)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\appium\webdriver\webdriver.py", line 324, in start_session
    response = self.execute(RemoteCommand.NEW_SESSION, w3c_caps)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 438, in execute
    response = self.command_executor.execute(driver_command, params)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 290, in execute
    return self._request(command_info[0], url, body=data)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\selenium\webdriver\remote\remote_connection.py", line 311, in _request
    response = self._conn.request(method, url, body=body, headers=headers)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\_request_methods.py", line 118, in request
    return self.request_encode_body(
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\_request_methods.py", line 217, in request_encode_body
    return self.urlopen(method, url, **extra_kw)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\poolmanager.py", line 422, in urlopen
    conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\poolmanager.py", line 303, in connection_from_host
    return self.connection_from_context(request_context)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\poolmanager.py", line 328, in connection_from_context
    return self.connection_from_pool_key(pool_key, request_context=request_context)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\poolmanager.py", line 351, in connection_from_pool_key
    pool = self._new_pool(scheme, host, port, request_context=request_context)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\poolmanager.py", line 265, in _new_pool
    return pool_cls(host, port, **request_context)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\connectionpool.py", line 196, in __init__
    timeout = Timeout.from_float(timeout)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\util\timeout.py", line 190, in from_float
    return Timeout(read=timeout, connect=timeout)
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\util\timeout.py", line 119, in __init__
    self._connect = self._validate_timeout(connect, "connect")
  File "F:\Project\ui_ByAppium\venv\lib\site-packages\urllib3\util\timeout.py", line 156, in _validate_timeout
    raise ValueError(
ValueError: Timeout value connect was , but it must be an int, float or None.

各位大佬请问这要怎么处理,Appium 是正常运行的但是用Python Remote就异常。求助_第2张图片

你可能感兴趣的:(python,appium,功能测试,selenium,单元测试)