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)
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)
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)