Bug 1881349 - Use setText() rather than trying to directly assign the value

fenix/125.0
Ryan VanderMeulen 3 months ago committed by mergify[bot]
parent ea3ef40d0d
commit c0a894becd

@ -1408,7 +1408,7 @@ fun setPageObjectText(webPageItem: UiObject, text: String) {
it.clearTextField()
Log.i(TAG, "setPageObjectText: Cleared ${webPageItem.selector} text field")
Log.i(TAG, "setPageObjectText: Trying to set ${webPageItem.selector} text to $text")
it.text = text
it.setText(text)
Log.i(TAG, "setPageObjectText: ${webPageItem.selector} text was set to $text")
}

@ -58,7 +58,7 @@ class CollectionRobot {
// names a collection saved from tab drawer
fun typeCollectionNameAndSave(collectionName: String) {
Log.i(TAG, "typeCollectionNameAndSave: Trying to set collection name text field to: $collectionName")
collectionNameTextField().text = collectionName
collectionNameTextField().setText(collectionName)
Log.i(TAG, "typeCollectionNameAndSave: Collection name text field set to: $collectionName")
Log.i(TAG, "typeCollectionNameAndSave: Waiting for $waitingTime ms for add collection button panel to exist")
addCollectionButtonPanel().waitForExists(waitingTime)
@ -228,7 +228,7 @@ class CollectionRobot {
mainMenuEditCollectionNameField().waitForExists(waitingTime)
Log.i(TAG, "typeCollectionNameAndSave: Waited for $waitingTime ms for collection name text field to exist")
Log.i(TAG, "typeCollectionNameAndSave: Trying to set collection name text field to: $name")
mainMenuEditCollectionNameField().text = name
mainMenuEditCollectionNameField().setText(name)
Log.i(TAG, "typeCollectionNameAndSave: Collection name text field set to: $name")
Log.i(TAG, "typeCollectionNameAndSave: Trying to press done action button")
onView(withId(R.id.name_collection_edittext)).perform(pressImeActionButton())

@ -66,7 +66,7 @@ class SettingsSubMenuLanguageRobot {
searchBar().waitForExists(waitingTime)
Log.i(TAG, "typeInSearchBar: Waited for $waitingTime ms for search bar to exist")
Log.i(TAG, "typeInSearchBar: Trying to set search bar text to: $text")
searchBar().text = text
searchBar().setText(text)
Log.i(TAG, "typeInSearchBar: Search bar text was set to: $text")
}

Loading…
Cancel
Save