Exemplo n.º 1
0
 def test_custom_actions_text(self):
     self.runDemo('Builder')
     try:
         wnd = self.app.child('GtkBuilder demo', roleName='frame', recursive=False, retry=False)
     except SearchError:
         wnd = self.app.child('Builder', roleName='frame', recursive=False, retry=False)
     focus.window(wnd.name)
     click.text('')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_TEXT)
Exemplo n.º 2
0
 def test_custom_actions_text(self):
     self.runDemo('Builder')
     try:
         wnd = self.app.child('GtkBuilder demo',
                              roleName='frame',
                              recursive=False,
                              retry=False)
     except SearchError:
         wnd = self.app.child('Builder',
                              roleName='frame',
                              recursive=False,
                              retry=False)
     focus.window(wnd.name)
     click.text('')
     self.assertTrue(isinstance(focus.widget.node, tree.Node))
     self.assertEqual(focus.widget.node.role, pyatspi.ROLE_TEXT)
Exemplo n.º 3
0
 def test_custom_actions_text(self):
     self.runDemo('Builder')
     focus.window('GtkBuilder demo')
     click.text('')
     self.assert_(isinstance(focus.widget.node, tree.Node))
     self.assertEquals(focus.widget.node.role, pyatspi.ROLE_TEXT)