【问题标题】:element.set_value not working in python appium for fill the application formelement.set_value 在 python appium 中不能用于填写申请表
【发布时间】:2017-11-06 12:02:30
【问题描述】:

我正在尝试使用 python appium 客户端在 android 应用程序上填充名称、电子邮件和其他详细信息等数据,但出现以下错误。 Appium 服务器版本-1.4.16.1 python appium 客户端 = 0.22 和 0.24 低于错误没有得到 ant 分辨率。

    element.set_value('Test_Uder')
  File "build\bdist.win-amd64\egg\appium\webdriver\webelement.py", line 123, in set_value
    self._execute(Command.SET_IMMEDIATE_VALUE, data)
  File "D:\vikas_python_venv\my_appium\lib\site-packages\selenium-3.7.0-py2.7.egg\selenium\webdriver\remote\webelement.py", line 501, in _execute
    return self._parent.execute(command, params)
  File "D:\vikas_python_venv\my_appium\lib\site-packages\selenium-3.7.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 308, in execute
    self.error_handler.check_response(response)
  File "build\bdist.win-amd64\egg\appium\webdriver\errorhandler.py", line 29, in check_response
    raise wde

WebDriverException:消息:尚未实现。请帮助我们: http://appium.io/get-involved.html

【问题讨论】:

    标签: appium python-appium


    【解决方案1】:

    您是否尝试改用“send_keys”?

    类似这样的:

    self.driver = webdriver.Remote('http://localhost:4723/wd/hub', 
    desired_caps)
    
    self.driver.find_element_by_id(          
    'com.matchbook.client:id/editTextUsername').send_keys("username_here")
    

    其中“com.matchbook.client”是您的包名称,您可以使用 Appium 桌面应用程序中包含的 Appium Inspector 找到元素 ID (com.matchbook.client:id/editTextUsername)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-02
      • 1970-01-01
      • 1970-01-01
      • 2017-03-10
      • 1970-01-01
      • 2015-05-18
      • 1970-01-01
      相关资源
      最近更新 更多