Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit e65ff1f

Browse files
committed
chore: reworked method for text edit to check how it will work on ci
1 parent 380ae89 commit e65ff1f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gui/components/settings/rename_keypair_popup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import configs
44
import driver
5+
from driver.objects_access import walk_children
56
from gui.components.base_popup import BasePopup
67
from gui.elements.button import Button
78
from gui.elements.text_edit import TextEdit
@@ -22,6 +23,9 @@ def wait_until_appears(self, timeout_msec: int = configs.timeouts.UI_LOAD_TIMEOU
2223

2324
@allure.step('Rename keypair')
2425
def rename_keypair(self, name):
25-
self._rename_text_edit.text = name
26+
for child in walk_children(self.object):
27+
if getattr(child, 'id', '') == 'edit':
28+
text_edit = TextEdit(real_name=driver.objectMap.realName(child))
29+
text_edit.text = name
2630
self._save_changes_button.click()
2731
self.wait_until_hidden()

0 commit comments

Comments
 (0)