TestProject Forum

Type text is not working for mobile app

Hi TestProject team!

When we add the step “Type text” it always returns success , however it’s not adding the text, can you help us our understanding what we can do, so the text is successfully added?

evidence that the text was not added :

This is also happening with the action “clear content”.
I’ve tested using android simulator; a phisical device and also browserstack, the result is always the same.

thank you

Try using the action: type text using ADB - Test Automation Addons Library | TestProject

let me know if it helps

it worked! thanks Mark! :grinning:
Regarding the clear content is there any other add on we can use?

We’ve tried this one java-android-example-addon/clear-fields but it has the same behaviour described earlier.

glad to hear that! as a workaround you can try this one Android Key Events: Test Automation Addons Library | TestProject

or just recording < on your android keyboard and reporting the step XX times (by using repeat step option).

can also paste the attributes/element signature here, the developers will take a look on that to see what the standard type text/clear doesn’t work

HI Mark, hope to find you well!

It worked with the suggested WA :ok_hand:

Here is the element if you want to have a look :

<android.widget.edittext bounds="{“x1”:48,“y1”:761,“x2”:1032,“y2”:898}" checkable=“false” checked=“false” class=“android.widget.EditText” clickable=“true” content-desc=“target sentence” displayed=“true” enabled=“true” focusable=“true” focused=“false” index=“2” long-clickable=“true” package=“com.unbabel.android.unbabel.staging” password=“false” scrollable=“false” selected=“false” text=“Nieuwe test handmatige test - dit is een geweldige test.” tp-types="[1007]" unique-id=“false” xpath="//android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/androidx.drawerlayout.widget.DrawerLayout[1]/android.view.ViewGroup[1]/android.widget.FrameLayout[1]/android.view.ViewGroup[1]/androidx.recyclerview.widget.RecyclerView[1]/android.view.ViewGroup[2]/android.widget.EditText[2]"></android.widget.edittext>

Thanks for the support!