关于sendinput() inserted only 0 out of 2 python程序问题的解决
生活随笔
收集整理的這篇文章主要介紹了
关于sendinput() inserted only 0 out of 2 python程序问题的解决
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題:當我在pycharm上執行自動化腳本時,pywinauto可以進行對窗口的操作;但是當我用jenkins構建自動化測試腳本時,pywinauto不能進行對窗口的操作,并且報錯sendinput() inserted only 0 out of 2
解決:
因為pywinauto用了鍵盤調用,更換pywinauto版本、python版本、pycharm版本都無法解決。
最后:居然把360衛士關了就好了,
報錯截圖:
總結
以上是生活随笔為你收集整理的关于sendinput() inserted only 0 out of 2 python程序问题的解决的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: DRF—Mixin拓展类、视图集
- 下一篇: django_rest_framewor