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

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: whether or not this function should block until the page is done loading

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: a string to be typed into the URL bar of the browser

  • wait_for_load: whether or not this call should block until the page is loaded

is_loaded()

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

open()

Open an instance of Firefox

read()

“Read” the current page, possibly including scrolling

reload()

Reload the current page.