AirtestProject / AirtestProject/Airtest
Airtest windows permissions issue
- Ngôn ngữ chính
- Python
- Star
- 9.6k
- Fork
- 1.5k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Describe the bug**
I get the following error when running airtest python script for a Windows application on a non-admin terminal.
I know that one possible solution is to simply run on an admin terminal. But I wanted to ask if there is any other way to resolve this permissions issue? As the underlying win32api works just fine without admin rights when run independently, it must be possible to get the airtest script also running without admin rights?
```
Traceback (most recent call last):
File "C:\Users\itsakshay\Desktop\Airtest Test\ui_test_main.py", line 50, in
touch(pos)
File "C:\Users\itsakshay\AppData\Local\Programs\Python\Python310\lib\site-packages\airtest\utils\logwraper.py", line 134, in wrapper
res = f(*args, **kwargs)
File "C:\Users\itsakshay\AppData\Local\Programs\Python\Python310\lib\site-packages\airtest\core\api.py", line 373, in touch
pos = G.DEVICE.touch(pos, **kwargs) or pos
File "C:\Users\itsakshay\AppData\Local\Programs\Python\Python310\lib\site-packages\airtest\core\win\win.py", line 315, in touch
self.mouse.move(coords=(end_x, end_y))
File "C:\Users\itsakshay\AppData\Local\Programs\Python\Python310\lib\site-packages\pywinauto\mouse.py", line 232, in move
_perform_click_input(button='move',coords=coords,button_down=False,button_up=False)
File "C:\Users\itsakshay\AppData\Local\Programs\Python\Python310\lib\site-packages\pywinauto\mouse.py", line 125, in _perform_click_input
win32api.SetCursorPos((coords[0], coords[1]))
pywintypes.error: (0, 'SetCursorPos', 'No error message is available')
```
**python version:** `python3.10`
**airtest version:** `1.3.5`
> You can get airtest version via `pip freeze` command.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.