zoukankan      html  css  js  c++  java
  • KeyError:使用Python的Appium中的“ touchAction” 错误码

    复制代码
    C:UsersPycharmProjectsAppiumSandboxvenvScriptspython.exe C:/Users/PycharmProjects/AppiumSandbox/tests/contactone.py
    Traceback (most recent call last):
    File “C:/Users/PycharmProjects/AppiumSandbox/tests/contactone.py”, line 21, in
    user_action.tap(x=909, y=220).perform()
    File “C:UsersPycharmProjectsAppiumSandboxvenvlibsite-packagesappiumwebdrivercommon	ouch_action.py”, line 149, in perform
    self._driver.execute(Command.TOUCH_ACTION, params)
    File “C:UsersPycharmProjectsAppiumSandboxvenvlibsite-packagesseleniumwebdriver
    emotewebdriver.py”, line 319, in execute
    response = self.command_executor.execute(driver_command, params)
    File “C:UsersPycharmProjectsAppiumSandboxvenvlibsite-packagesseleniumwebdriver
    emote
    emote_connection.py”, line 367, in execute
    command_info = self._commands[command]
    KeyError: ‘touchAction’
    复制代码

    解决方案


    通过添加from appium import webdriver和删除from selenium import webdriver提到的自动化脚本可以解决问题。

  • 相关阅读:
    @@IDENTITY,SCOPE_IDENTITY和IDENT_CURRENT的辨析
    Blue Jeans[poj3080]题解
    绿色通道题解
    后缀数组
    Power Strings[poj2406]题解
    KMP算法
    Life Forms[poj3294]题解
    STM32固件库文件编程结构思想的理解
    GPIO设置
    HTML_v2
  • 原文地址:https://www.cnblogs.com/spbyyy/p/14180432.html
Copyright © 2011-2022 走看看