用airtest测试网页时,使用text()方法报错

下面是报错代码

driver.airtest_touch(Template(r"tpl1636704077278.png", record_pos=(-0.001, -0.065), resolution=(1920, 1080)))
text("18000000000")


  File "site-packages\pywinauto\keyboard.py", line 364, in run
ctypes.ArgumentError: argument 2: <class 'TypeError'>: expected LP_INPUT instance instead of pointer to INPUT_Array_2

======================================================================
ERROR: runTest (app.widgets.code_runner.ide_launcher.AirtestIDECase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "airtest\cli\runner.py", line 73, in runTest
  File "site-packages\six.py", line 703, in reraise
  File "airtest\cli\runner.py", line 70, in runTest
  File "C:\Users\win\Desktop\untitled.air\untitled.py", line 25, in <module>
    text("18000000000")
  File "airtest\utils\logwraper.py", line 90, in wrapper
  File "airtest\core\api.py", line 546, in text
  File "D:\AirtestIDE-win-1.2.12\AirtestIDE\airtest\core\win\win.py", line 175, in text
    self.keyevent(text)
  File "D:\AirtestIDE-win-1.2.12\AirtestIDE\airtest\core\win\win.py", line 161, in keyevent
    self.keyboard.SendKeys(keyname)
  File "site-packages\pywinauto\keyboard.py", line 634, in SendKeys
  File "site-packages\pywinauto\keyboard.py", line 364, in run
ctypes.ArgumentError: argument 2: <class 'TypeError'>: expected LP_INPUT instance instead of pointer to INPUT_Array_2



你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。