Code Monkey home page Code Monkey logo

Comments (18)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
What happens if you do something like this:

for (TextView textView : solo.getCurrentTextViews())
Log.d("Robotium_TAG", "textView: " + textView.getText());

Do you see the text view displaying "show" in the log? 

Original comment by [email protected] on 16 Oct 2010 at 12:23

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Thanks for following up so quickly.  Strangely, only the top textview is 
returned when executing that code.  The views are laid out as follow 
(simplified for reading)

<LinearLayout 
    <LinearLayout 
        <ScrollView
            <TextView />
        </ScrollView>
    </LinearLayout>
    <LinearLayout
        android:id="@+id/horizontalLine"/>
    <LinearLayout 
        <ScrollView
            <TextView />
        </ScrollView>
    </LinearLayout>
    <LinearLayout />
</LinearLayout>

Original comment by [email protected] on 16 Oct 2010 at 9:37

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Interesting. If they are shown on the screen then you should have access to 
them. Would it be possible for you to send me this application or one that 
displays this problem? 

Original comment by [email protected] on 16 Oct 2010 at 10:02

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I also had the same problem.I used method clickOnText() click on textview in 
single
choice dialog.but it can't be selected.

Original comment by [email protected] on 20 Oct 2010 at 8:29

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I also faced this problem ... I have two image button . In the middle i have 
text view ...Its clearly visible and it able to search the test also .. but it 
is not clickable ... My textview has  text and background image property .

Original comment by [email protected] on 22 Oct 2010 at 10:17

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
@renasreda: Sorry, but I haven't been able to spend the time to narrow this 
down to a small example for you.  I'll see what I can do.  Have you by any 
chance tried constructing a similar view to see if you can reproduce the 
problem?

Thanks for all of your work!

Original comment by [email protected] on 22 Oct 2010 at 1:06

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024

I am getting this below error :

junit.framework.assertionfailederror: View is not visible and can therefore not 
be clicked 
in robotium file :
clicker.clickonscreen(clicker.java:152)
clicker.clickontext(clicker.java:285)
Solo.clicklongontext(clicker.java:717) ...

sorry ,i cant paste the full error code ,as it was exectued in test PC .


Original comment by [email protected] on 26 Oct 2010 at 11:30

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Jegan your error is different. The reason for your problem is that you are 
trying to click on a text view that is not visible on the screen. Probably you 
have two text views displaying the same text were only one is visible. Use 
clickLongOnText(String text, int match) instead. Where the match would be 2 or 
possibly higher depending on how many text views you have that display the same 
text.

Original comment by [email protected] on 26 Oct 2010 at 2:32

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I am having similar problem.  I'm trying to click on text that is in a spinner 
list, and the logs show that Robotium cannot find the item on the list.  It 
seems if there is only alpha number characters, clickOnText works. But if there 
is non alpha number, it doesn't. 

I'm trying to step thru a spinner list with the following items..

None (PCM)
PCMA
AMR (6.50 kbps)
AMR (14.25 kbps)

PCMA is the only item on the list that will work with ClickOnText. All the rest 
do not work.  I've had examples where spaces were in text items, so maybe it's 
the other characters that are making the method not work?

Original comment by [email protected] on 28 Oct 2010 at 7:11

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Albert, the reason for your problem is that ( and ) are interoperated as 
regular expressions. Use // before the ( and ).

Original comment by [email protected] on 30 Oct 2010 at 9:14

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
I believe renasreda means \\, (two back slashes, not forward slashes.)

Original comment by [email protected] on 30 Oct 2010 at 1:13

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Sorry about that, it should be two back slashes. Thanks for that Jeff.

Original comment by [email protected] on 30 Oct 2010 at 2:14

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Hi Jeff,

I am not able to reproduce this problem. If you can not send me an app that 
displays this problem then I will have to close this issue. 

Original comment by [email protected] on 12 Nov 2010 at 7:08

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Not reproducable therefor will be closed.

Original comment by [email protected] on 14 Nov 2010 at 7:12

  • Changed state: WontFix

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Hi 
Sorry for my english. I'm Italian. Could you tell me how select a not visible 
spinner on the screen with robotium?

The spinner isn't in focus. It's clickable but not visible because it's out the 
screen.

Thanks

Original comment by castigliafrancesco on 28 Nov 2011 at 5:51

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
To be able to click it needs to be shown on the screen. 

Original comment by [email protected] on 29 Nov 2011 at 8:20

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
Hi reanasreda
I am having the same issue too, I see my text right in front of me and my test 
is not able to click it, i tried using ClickLongonText but that didn;t work too.
I thought of using an assertTrue method and check if I can search for that text 
and that case failed too...

I keep getting the assertionFailed error.
Any help is appreciated

Vivek

Original comment by [email protected] on 22 Nov 2012 at 7:37

from robotium.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 23, 2024
@Vivek, The activity needs to belong to the same process as the app under test. 

Original comment by [email protected] on 22 Nov 2012 at 7:42

from robotium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.