Re: Verify the text in the input webElement?

185 views
Skip to first unread message

Renas Reda

unread,
Mar 23, 2013, 5:03:27 AM3/23/13
to Robotium Developers
Hi,

The behaviour will be changed. In the coming version
solo.getCurrentWebElements(com.jayway.android.robotium.solo.By.id("ccNumber
")).get(0).getText() will work as expected.

/Renas

On Mar 22, 7:23 pm, Franck Derunes <fderu...@gmail.com> wrote:
> Hi,
>
> in my webView I have the input webElement with an id ccNumbert:
> solo.getCurrentWebElements(com.jayway.android.robotium.solo.By.id("ccNumber ")).get(0);
>
> in order to enter the number in the input I execute:
> solo.typeTextInWebElement(com.jayway.android.robotium.solo.By.id("ccNumber" ),
> "123456")
>
> How do you verify this value has been entered?
>
> I tried
> solo.getCurrentWebElements(com.jayway.android.robotium.solo.By.id("ccNumber ")).get(0).getText()
> this returns an empty value
>
> thanks

Gabbar Singh

unread,
Nov 26, 2015, 7:18:57 AM11/26/15
to Robotium Developers
You can  solo.searchText(TextToBeSearched) to assert whether what you have entered is visible or not.
Reply all
Reply to author
Forward
0 new messages