ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class CentOS7XFCEWindow.CentOS7XFCEWindow(system, config, app=None)¶
I am a subclass of <no title> which knows about windows on Windows XP using the Windows Classic theme.
Parameters:
system: a <no title> object through which we interact with the window
config: a <no title> object for this user
app: if present, its a handle to the application controlling this Window
- can_scroll()¶
Return: True iff there is an enabled verticle scrollbar
- find_window_edges()¶
Try to find the edges of our current window
- get_focus()¶
Switch the system so that this window has focus. This cannot be called until after save_state so the system knows what to look for.
Return: a boolean indicating whether or not this failed
- has_focus()¶
Return: a boolean whether or not this window currently has focus
- is_maximized()¶
Return: True iff the window has been maximized
- maximize()¶
Make sure the window is maximized. If this Window does not currently have focus return False immediately.
Return: True if the Window is maximized, False otherwise
- scroll_down(times)¶
Click the scroll down button some number of times. – TODO there are other ways to scroll, those should also be available
Parameters:
times: the number of times to click the down arrow
- scroll_up(times)¶
Click the scroll up button some number of times. – TODO there are other ways to scroll, those should also be available
Parameters:
times: the number of times to click the up arrow