How to get the widget with focus?
Hi all, I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget? Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated. Thanks in advance! ---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile
There is a method named hasKeyboardFocus, maybe it could help :) Ben On Jan 14, 2012, at 4:34 PM, Johan Fabry wrote:
Hi all,
I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget?
Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated.
Thanks in advance!
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile
OK thanks, I'll start from there :-) On 14 Jan 2012, at 21:53, Benjamin wrote:
There is a method named hasKeyboardFocus, maybe it could help :)
Ben
On Jan 14, 2012, at 4:34 PM, Johan Fabry wrote:
Hi all,
I am writing some test cases that require me to open and close windows and play with widgets and whatnot. Sadly I am a bit lost as I have no experience in this area. Now I am trying to get a handle on the widget that has focus. Is there an easy way to get to this widget?
Also some pointers to examples/tests that programmatically operate on widgets and could serve as examples would be appreciated.
Thanks in advance!
---> Save our in-boxes! http://emailcharter.org <---
Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile
---> Save our in-boxes! http://emailcharter.org <--- Johan Fabry jfabry@dcc.uchile.cl - http://dcc.uchile.cl/~jfabry PLEIAD Lab - Computer Science Department (DCC) - University of Chile
participants (2)
-
Benjamin -
Johan Fabry