Comments (18)
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.
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.
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.
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.
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.
@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.
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.
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.
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.
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.
I believe renasreda means \\, (two back slashes, not forward slashes.)
Original comment by [email protected]
on 30 Oct 2010 at 1:13
from robotium.
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.
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.
Not reproducable therefor will be closed.
Original comment by [email protected]
on 14 Nov 2010 at 7:12
- Changed state: WontFix
from robotium.
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.
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.
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.
@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)
- Cannot take screenshot on some devices. HOT 1
- Cannot browse to JDK Home with official Sun JDK on Mac Osx 10.10.3 HOT 1
- ConcurrentModificationException when calling Solo.finishOpenedActivities HOT 9
- WaitForView using resource id doesn't return until timeout is reached, even when a match is found HOT 4
- xpath result contains only one html node HOT 1
- Robotium Recorder failing to launch app on mobile device HOT 3
- Cannot Run robotium tests after save HOT 5
- ActivityUtils.getCurrentActivity() fails when dialog-styled activities change orientation HOT 1
- Unable start new Recording HOT 6
- When using Solo.clickOnActionBarHomeButton, can't click on text on the NavigationDrawer HOT 8
- Solo waitForDialogToOpen() continues on shown toast message HOT 1
- Problems to setting date in date picker HOT 1
- clickOnActionBarItem(0x1) is not working. HOT 5
- How to generate the robotium test reports? HOT 2
- Not able to click on ImageView in the list view list item HOT 1
- clickontext dosen't work in listview and orientation of phone is landscape HOT 1
- Robotium 5.3.0 crash problem (ActivityMonitor thread?) HOT 3
- RobotiumWebClient cannot be cast to org.apache.cordova.engine.SystemWebChromeClient HOT 1
- images drawn on Canvas HOT 1
- Is it possible to do Android Robotium with JBehave White box automation using source project? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotium.