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 IEGenericImpl.IEGenericImpl(system, config)

This class will drive the actual <no title> Internet Explorer running on Windows. It has one configuration requirement that is different from the standard install of Internet Explorer

IE Configuration:

  • Open Internet Explorer

  • Goto Tools->Internet Options

  • Under the “General” tab click the Fonts button

  • Set “Webpage font” and “Plain text font” both to be “Courier New”

Parameters:

  • system: a <no title> object which lets us control the remote system

  • config: a <no title> object defining the current user

Find a link on the page with the given text and click on it.

This may require scrolling the screen to find the link.

This method will not return until the new page is done loading or it has been deteremined that the link cannot be found.

Parameters:

  • text: a string that is the text of the link to click

  • wait_for_load: determines whether this function should try to wait for the page to load or not

exit(save=False)

Exit the browser.

Parameters:

  • save: just there for a common prototype

go_back()

Press the Back button, or some sequence that accomplished the same goal (e.g., pressing backspace will often do it too).

go_forward()

Press the Forward button, or some sequence that accomplished the same goal

go_to_uri(uri, wait_for_load=True)

Navigate to the URI, bringing this window to the fore before trying.

This method will block until the page is finished loading.

Parameters:

  • uri: the string to type into the URL bar of the browser

  • wait_for_load: determines whether this function should try to wait for the page to load or not

is_loaded()

Return: True iff the page is loaded, False otherwise.

open(wait_for_load=True)

Open an instance of IE

Parameters:

  • wait_for_load: whether to wait for the first page to finish loading or not

read()

“Read” the current page, possibly including scrolling

reload()

Reload the current page.