Skip to content

需要支持模糊搜索匹配和正则匹配 #53

Description

@zytwell

File "D:\project\lebo_code\lebo_test\lebo_u2_ad\baseView\basic_hm.py", line 206, in click_by_text
element = self._device(textContains=text)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda\Lib\site-packages\hmdriver2\driver.py", line 72, in call
return UiObject(self._client, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda\Lib\site-packages\hmdriver2_uiobject.py", line 48, in init
self.__verify()
File "D:\anaconda\Lib\site-packages\hmdriver2_uiobject.py", line 58, in __verify
raise ReferenceError(f"{k} is not allowed.")
ReferenceError: textContains is not allowed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions