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

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

Open
HiJesse opened this issue Dec 29, 2018 · 0 comments
Open

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

HiJesse opened this issue Dec 29, 2018 · 0 comments

Comments

@HiJesse
Copy link

HiJesse commented Dec 29, 2018

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'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant