Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

IOS设备click_image不支持action='long_click' #200

@HiJesse

Description

@HiJesse

Version information

  • ATX Version: 1.2
  • Python Version: 3.6

issue

你好 我在ios设备上使用click_image长按时提示不支持long_click. action='click'是正常的. 在android设备上都是正常的. 在testerhome里也没有找到相应的文档. ios上不支持click_image的长按么? 如果支持的话希望ios能和android设备的参数对齐, 作者辛苦了.

Do you have any log or screenshots?

    self._device.click_image(ConstantImage.IMAGE_LOGIN, safe=True, delay=10, action='long_click')
  File "/Users/jesse/Projects/Hephaestus/module_assistant_mh/manager/mobile_device_manager.py", line 132, in click_image
    return self._device.click_image(image, timeout, action, safe, desc, delay)
  File "/Users/jesse/Projects/Hephaestus/venv/lib/python3.5/site-packages/atx/drivers/mixin.py", line 62, in _inner
    _retval = fn(*args, **kwargs)
  File "/Users/jesse/Projects/Hephaestus/venv/lib/python3.5/site-packages/atx/drivers/mixin.py", line 541, in click_image
    func = getattr(self, action)
AttributeError: 'IOSDevice' object has no attribute 'long_click'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions