Comments (5)
From [email protected] on October 15, 2010 15:00:51
Hi, this functionality already exists:
clickOnMenuItem(String text, boolean subMenu)
Status: Invalid
from robotium.
From [email protected] on October 15, 2010 15:13:47
Sorry, didn't realize the method clickOnMenuItem(String text, boolean subMenu) already exists.
But as a usability thing why not just keep one method as clickOnMenuItem(String text)
and let it take care of more menu options rather than overloading. Is it because of backward compatibility.
from robotium.
From [email protected] on October 15, 2010 19:39:20
It is because of backward compability. The clickOnMenuItem(String text, boolean subMenu) was first implemented in 1.7.0.
from robotium.
From [email protected] on October 15, 2010 19:45:10
Also becuase "More" is not always called More (localization issues) so basically the only way to know that the button is actually More is if there are 6 text fields in the menu. That however could mean that the 6th text field is not a more and then this feature would fail. That is why the subMenu parameter is needed.
from robotium.
From [email protected] on October 15, 2010 20:06:06
Thanks for the explanation, I have just one more comment/clarification:
the way code for clickOnMenuItem(String text, boolean subMenu) is written, it first checks if there is textMore on screen, if it exists then it clicks it otherwise it just directly clicks on text. So the extra param can be removed and clickOnMenuItem always do this
if(textMore != null)
clickOnScreen(textMore);
clickOnText(text, false, 1, false);
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.