chore(@e2e): change locators
This commit is contained in:
parent
b0105fc30a
commit
6e109ba858
|
@ -30,9 +30,9 @@ class ContactRequest:
|
||||||
|
|
||||||
def init_ui(self):
|
def init_ui(self):
|
||||||
for child in walk_children(self.object):
|
for child in walk_children(self.object):
|
||||||
if str(getattr(child, 'objectName', '')) == 'checkmark-circle-icon':
|
if str(getattr(child, 'objectName', '')) == 'acceptBtn':
|
||||||
self._accept_button = Button(real_name=driver.objectMap.realName(child))
|
self._accept_button = Button(real_name=driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'objectName', '')) == 'close-circle-icon':
|
elif str(getattr(child, 'objectName', '')) == 'declineBtn':
|
||||||
self._decline_button = Button(real_name=driver.objectMap.realName(child))
|
self._decline_button = Button(real_name=driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'objectName', '')) == 'StatusMessageHeader_DisplayName':
|
elif str(getattr(child, 'objectName', '')) == 'StatusMessageHeader_DisplayName':
|
||||||
self.contact_request = str(child.text)
|
self.contact_request = str(child.text)
|
||||||
|
|
|
@ -64,9 +64,9 @@ class ContactItem:
|
||||||
self.icon = Image(driver.objectMap.realName(child))
|
self.icon = Image(driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'id', '')) == 'menuButton':
|
elif str(getattr(child, 'id', '')) == 'menuButton':
|
||||||
self._open_canvas_button = Button(real_name=driver.objectMap.realName(child))
|
self._open_canvas_button = Button(real_name=driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'objectName', '')) == 'checkmark-circle-icon':
|
elif str(getattr(child, 'objectName', '')) == 'acceptBtn':
|
||||||
self._accept_button = Button(real_name=driver.objectMap.realName(child))
|
self._accept_button = Button(real_name=driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'objectName', '')) == 'close-circle-icon':
|
elif str(getattr(child, 'objectName', '')) == 'declineBtn':
|
||||||
self._reject_button = Button(real_name=driver.objectMap.realName(child))
|
self._reject_button = Button(real_name=driver.objectMap.realName(child))
|
||||||
elif str(getattr(child, 'id', '')) == 'statusListItemTitle':
|
elif str(getattr(child, 'id', '')) == 'statusListItemTitle':
|
||||||
self.contact = str(child.text)
|
self.contact = str(child.text)
|
||||||
|
|
Loading…
Reference in New Issue