We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LOC related
Reproduction:
import mock from snippet_uiautomator import uidevice ui_device = uidevice.UiDevice(ui=mock.MagicMock()) root = ui_device(res='root') view_group = root.child(clazz='android.view.ViewGroup') # view_group._selector.to_dict() == # {'res':'root', 'child': {'clazz' : 'android.view.ViewGroup'}} for i in range(3): ith_desc = view_group.children[i]['contentDescriptions'] ith = view_group.child(desc=ith_desc) # This change the view_group._selector # view_group._selector.to_dict() == ith._selector.to_dict() == # {'res':'root', 'child': {'clazz' : 'android.view.ViewGroup', 'child': {'desc': ''}}}
Should we change to BySelector(copy.deepcopy(**self._selector) instead of BySelector(**self._selector)?
BySelector(copy.deepcopy(**self._selector)
BySelector(**self._selector)
The text was updated successfully, but these errors were encountered:
Good catch! Yes, we should deep copy the dict.
Sorry, something went wrong.
ko1in1u
No branches or pull requests
LOC related
Reproduction:
Should we change to
BySelector(copy.deepcopy(**self._selector)
instead ofBySelector(**self._selector)
?The text was updated successfully, but these errors were encountered: