AirtestProject / AirtestProject/Airtest
wda.WDARequestError: WDARequestError(status=13, value=Error Domain=XCTDaemonErrorDomain Code=14
- Langage dominant
- Python
- Étoiles
- 9.6k
- Forks
- 1.5k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Remove any following parts if does not have details about
**Describe the bug**
A clear and concise description of what the bug is. Or paste traceback below.
执行时报错上述信息
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/airtest/utils/logwraper.py:72: in wrapper
res = f(*args, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/airtest/core/api.py:367: in text
G.DEVICE.text(text, enter=enter, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/airtest/core/ios/ios.py:44: in wrapper
raise err
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/airtest/core/ios/ios.py:37: in wrapper
return func(self, *args, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/airtest/core/ios/ios.py:251: in text
self.session.send_keys(text)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py:644: in send_keys
return self.http.post('/wda/keys', data={'value': value})
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py:144: in fetch
return self._fetch_no_alert(method, url, data)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wda/__init__.py:150: in _fetch_no_alert
return httpdo(target_url, method, data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
url = 'http://127.0.0.1:8100/session/31BEFFB2-C374-4FD1-ADF4-9D31CA0300B6/wda/keys', method = 'post', data = {'value': ['1', '2', '\n']}
def httpdo(url, method='GET', data=None):
"""
Do HTTP Request
"""
start = time.time()
if DEBUG:
body = json.dumps(data) if data else ''
print("Shell: curl -X {method} -d '{body}' '{url}'".format(
method=method.upper(), body=body or '', url=url))
try:
response = requests.request(method,
url,
json=data,
timeout=HTTP_TIMEOUT)
except (requests.exceptions.ConnectionError,
requests.exceptions.ReadTimeout) as e:
raise
if DEBUG:
ms = (time.time() - start) * 1000
print('Return ({:.0f}ms): {}'.format(ms, response.text))
try:
retjson = response.json()
retjson['status'] = retjson.get('status', 0)
r = convert(retjson)
if r.status != 0:
> raise WDARequestError(r.status, r.value)
E wda.WDARequestError: WDARequestError(status=13, value=Error Domain=XCTDaemonErrorDomain Code=14 "Timed out after waiting 1.0s for KeyEventCompleted after sending event for '
E '." UserInfo={NSLocalizedDescription=Timed out after waiting 1.0s for KeyEventCompleted after sending event for '
E '.})
**To Reproduce**
Steps to reproduce the behavior:
定位元素后,
调用text()输入内容
执行时报错
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**python version:** `python3.5`
python3.6
**airtest version:** `1.0.22`
> You can get airtest version via `pip freeze` command.
1.0.27
**Smartphone (please complete the following information):**
iPhone 6(ios 11)
**Additional context**
Add any other context about the problem here.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.