GNOME Bugzilla – Bug 574127
Source of ambiguity
Last modified: 2018-09-11 19:53:18 UTC
Please describe the problem: Using the command ldtp.selectmenuitem('frm*Anjuta*', 'mnuNew') , I am able to select the menuitem 'File->New'. This should not be possible, because it constitutes a 'source of ambiguity' and ambiguity sources makes programs weak, and complex. Complex to write, complex to maintain. Prone to failures in cases of environmental changes. Also the menuitem 'File->New' is not accessible to the user without first having selected menu 'File'. In doing so, LDTP is doing something the user couldn't have possibly done. Steps to reproduce: #!/usr/bin/env python from ldtp import * program_name = 'anjuta' window_title = 'frm*Anjuta*' appundertest(program_name) launchapp(program_name) waittillguiexist(window_title) selectmenuitem(window_title, 'mnuNew') Actual results: File->New is selected. Expected results: LDTP should throw an exception saying that the path to the "objet" is either inexistent or not fully qualified. Does this happen every time? Yes. Other information:
LDTP has moved to Github. If the problem reported in this GNOME Bugzilla ticket still exists in a recent LDTP version, please feel free to report the issue at https://github.com/ldtp/ldtp2/issues Thanks for your understanding and we apologize for the inconvenience!