Home > other >  Python appium error, is solved
Python appium error, is solved

Time:09-21

I want to write a program to simulate well quickly video simulation through video, error message is as follows:
Traceback (the most recent call last) :
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 672, in urlopen
Chunked=chunked,
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 421, in _make_request
Six. Raise_from (e, None)
The File "& lt; string>" , line 3, in raise_from
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 416, in _make_request
Httplib_response=conn. The method getresponse ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 1336, in the method getresponse
The response. The begin ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 306, in the begin
Version, status, reason=self. _read_status ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 275, in _read_status
Raise RemoteDisconnected (" Remote end closed connection with "
HTTP. Client. RemoteDisconnected: Remote end closed the connection without response

During handling of the above exception, another exception occurred:

Traceback (the most recent call last) :
File "c:/APP/QQstorage/541554971/FileRecv/python/learning sctu - ds - 2020/1906101019 - Gu Jia//kuaishou. Py", line 38, the in & lt; module>
Driver. Swipe (start_x start_y, start_x, start_y - short, 300) # analog sliding
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ appium \ webdriver \ extensions \ action_helpers py", line 127, in
Swipe
Action. The perform ()
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ appium \ webdriver \ common \ touch_action py", line 136, perform in
Self. _driver. Execute (Command. TOUCH_ACTION params)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages, selenium and webdriver \ remote \ webdriver py", line 319, in the execute
The response=self.com mand_executor. The execute (driver_command, params)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages, selenium and webdriver \ remote \ remote_connection py", line 374, in the execute
Return the self. _request (command_info [0], url, body=data)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages, selenium and webdriver \ remote \ remote_connection py", line 397, in _request
Resp=self. _conn. Request (method, url, body=body, headers=headers)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ request py", line 80, in the request
Method, url, fields=fields, headers=headers, * * urlopen_kw
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ request py", line 171, in request_encode_body
Return the self. Urlopen (method, url, * * extra_kw)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ poolmanager py", line 330, in urlopen
The response=conn. Urlopen (method, u.r equest_uri, * * kw)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 720, in urlopen
Method, url, error=e, _pool=self, _stacktrace=sys. Exc_info () [2]
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ util \ retry py", line 400, the increment in
Raise the six reraise (type (error), the error, _stacktrace)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ packages \ six py", line 734, reraise in
Raise the value. With_traceback (TB)
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 672, in urlopen
Chunked=chunked,
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 421, in _make_request
Six. Raise_from (e, None)
The File "& lt; string>" , line 3, in raise_from
The File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ lib \ site - packages \ urllib3 \ connectionpool py", line 416, in _make_request
Httplib_response=conn. The method getresponse ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 1336, in the method getresponse
The response. The begin ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 306, in the begin
Version, status, reason=self. _read_status ()
File "C: \ Users \ JohnD \ AppData \ Local \ designed \ Python \ Python37 \ \ lib \ HTTP client. Py", line 275, in _read_status
Raise RemoteDisconnected (" Remote end closed connection with "
Urllib3. Exceptions. ProtocolError: (' Connection aborted. 'RemoteDisconnected (' Remote end closed the Connection without the response'))
Source:
The from appium import webdriver
The from appium. Webdriver. Extensions. Android. Nativekey import AndroidKey
The import time

Desired_caps={
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related