Example #1
0
 def testFocusMenuItem(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     click.menu('File')
     focus.menuItem('New')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_MENU_ITEM)
Example #2
0
 def test_focus_menu_item(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     click.menu('File')
     focus.menuItem('New')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_MENU_ITEM)
Example #3
0
 def test_focus_menuItem(self):
     self.runDemo('Builder')
     click.menu('File')
     focus.menuItem('New')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_MENU_ITEM)
Example #4
0
 def test_focus_menuItem(self):
     self.runDemo('Builder')
     click.menu('File')
     focus.menuItem('New')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_MENU_ITEM)