mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-24 05:21:58 +00:00
16ed8739e8
- fix add-account-modal custom derivation checkbox blocking all workflows - fix, improve and enable wallet tests - wait_for_text_matching alternative, to is_text_matching, to check also for content as squish driver API - add objectName based lookup for in some places where user-text was used - add workaround to retry for 10 seconds add watch due to flakiness - rename SquishDriver.type to type.text not to conflict with python's type - add optional timeout to some APIs - ignore error for extra step in reaching onboarding seedphrase in linux Updates: #9576
36 lines
1.4 KiB
Python
36 lines
1.4 KiB
Python
|
|
from drivers.SquishDriver import *
|
|
from drivers.SquishDriverVerification import *
|
|
|
|
|
|
def input_seed_phrase(input_object_name: str, words: str):
|
|
type_text(input_object_name + "1", words[0])
|
|
type_text(input_object_name + "2", words[1])
|
|
type_text(input_object_name + "3", words[2])
|
|
type_text(input_object_name + "4", words[3])
|
|
type_text(input_object_name + "5", words[4])
|
|
type_text(input_object_name + "6", words[5])
|
|
type_text(input_object_name + "7", words[6])
|
|
type_text(input_object_name + "8", words[7])
|
|
type_text(input_object_name + "9", words[8])
|
|
type_text(input_object_name + "10", words[9])
|
|
type_text(input_object_name + "11", words[10])
|
|
type_text(input_object_name + "12", words[11])
|
|
|
|
if len(words) >= 18:
|
|
type_text(input_object_name + "13", words[12])
|
|
type_text(input_object_name + "14", words[13])
|
|
type_text(input_object_name + "15", words[14])
|
|
type_text(input_object_name + "16", words[15])
|
|
type_text(input_object_name + "17", words[16])
|
|
type_text(input_object_name + "18", words[17])
|
|
|
|
if len(words) == 24:
|
|
type_text(input_object_name + "19", words[18])
|
|
type_text(input_object_name + "20", words[19])
|
|
type_text(input_object_name + "21", words[20])
|
|
type_text(input_object_name + "22", words[21])
|
|
type_text(input_object_name + "23", words[22])
|
|
type_text(input_object_name + "24", words[23])
|
|
|