Comments (19)
From [email protected] on October 16, 2010 05:23:25
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?
Owner: renasreda
from robotium.
From [email protected] on October 16, 2010 14:37:22
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
<LinearLayout
<ScrollView
from robotium.
From [email protected] on October 16, 2010 15:02:31
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?
from robotium.
From [email protected] on October 20, 2010 01:29:01
I also had the same problem.I used method clickOnText() click on textview in single
choice dialog.but it can't be selected.
from robotium.
From [email protected] on October 22, 2010 03:17:51
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 .
from robotium.
From [email protected] on October 22, 2010 06:06:15
@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!
from robotium.
From [email protected] on October 26, 2010 04:30:16
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 .
from robotium.
From [email protected] on October 26, 2010 07:32:46
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.
from robotium.
From [email protected] on October 28, 2010 00:11:46
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?
from robotium.
From [email protected] on October 30, 2010 02:14:16
Albert, the reason for your problem is that ( and ) are interoperated as regular expressions. Use // before the ( and ).
from robotium.
From [email protected] on October 30, 2010 06:13:13
I believe renasreda means , (two back slashes, not forward slashes.)
from robotium.
From [email protected] on October 30, 2010 07:14:38
Sorry about that, it should be two back slashes. Thanks for that Jeff.
from robotium.
From [email protected] on November 12, 2010 11:08:19
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.
from robotium.
From [email protected] on November 14, 2010 11:12:30
Not reproducable therefor will be closed.
Status: WontFix
from robotium.
From castigliafrancesco on November 28, 2011 09:51:14
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
from robotium.
From [email protected] on November 29, 2011 00:20:32
To be able to click it needs to be shown on the screen.
from robotium.
From [email protected] on November 21, 2012 23:37:28
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
from robotium.
From [email protected] on November 21, 2012 23:42:31
@vivek, The activity needs to belong to the same process as the app under test.
from robotium.
clickonscreen not working on framework view from github like twowayview , viewpager , .....
from robotium.
Related Issues (20)
- update repository description URL
- Build error with JavaCompile.setDependencyCacheDir() HOT 4
- Recording failed; Build failed with an exception HOT 3
- Links to PDF tutorials are broken
- Application not launch on test started HOT 4
- ClickOnScreen Not working
- ClickOnwebElement not working
- Build failed: Could not find :ExecutorLibrary: HOT 3
- Is Robotium dead? HOT 4
- CLick on TwoWayView, Viewpager
- robotium typetext wrong order HOT 2
- Cannot find Activity class on Android7.0 HOT 1
- Can't open Javadoc HOT 1
- assertFalse does not work on Android Oreo 8.1 HOT 1
- [QUESTION] Where I can find the CI service?
- Robotium Recorder : Please install a compatible Android API level (15 or higher) HOT 2
- Image validation in mobile native app HOT 2
- Robotium to work with targetSdkVersion 30
- Could not find manifest file within jar
- Could find http://recorder.robotium.com/updates
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.