Git Product home page Git Product logo

Comments (5)

renas avatar renas commented on August 19, 2024

From [email protected] on October 15, 2010 15:00:51

Hi, this functionality already exists:
clickOnMenuItem(String text, boolean subMenu)

Status: Invalid

from robotium.

renas avatar renas commented on August 19, 2024

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.

renas avatar renas commented on August 19, 2024

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.

renas avatar renas commented on August 19, 2024

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.

renas avatar renas commented on August 19, 2024

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)

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.