diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt index d98e22a9c..4ec644972 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/BrowserRobot.kt @@ -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") } diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt index 1dc74bb38..0b0b579be 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/CollectionRobot.kt @@ -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()) diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuLanguageRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuLanguageRobot.kt index 7bca7bb37..c288c13ca 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuLanguageRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuLanguageRobot.kt @@ -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") }