Example #1
0
 def test_focus_icon(self):
     self.runDemo('Clipboard')
     try:
         wnd = self.app.child('Clipboard demo', roleName='frame', retry=False, recursive=False)
     except SearchError:
         wnd = self.app.child('Clipboard', roleName='frame', retry=False, recursive=False)
     focus.window(wnd.name)
     focus.icon('Warning')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_ICON)
Example #2
0
 def test_focus_icon(self):
     self.runDemo('Clipboard')
     try:
         wnd = self.app.child('Clipboard demo',
                              roleName='frame',
                              retry=False,
                              recursive=False)
     except SearchError:
         wnd = self.app.child('Clipboard',
                              roleName='frame',
                              retry=False,
                              recursive=False)
     focus.window(wnd.name)
     focus.icon('Warning')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_ICON)
Example #3
0
 def test_keyCombo_on_widget(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     focus.icon('')
     keyCombo("<ctrl>a")
     focus.dialog('About GTK+ Code Demos')
Example #4
0
 def test_focus_icon(self):
     self.runDemo('Application window')
     focus.window('Application Window')
     focus.icon('')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_ICON)