AirtestProject / AirtestProject/Airtest
Airtest windows permissions issue
- 主要言語
- Python
- スター
- 9.6k
- フォーク
- 1.5k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
**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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。