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

This class is the abstract parent for clients that will use the Rocket Chat web chat program.

Parameters:

  • system: a <no title> object to communicate with the target system

  • config: a <no title> object holding all our configuration

advance_to_username_field()

With the colors that ConsoleUser uses the box isn’t visible, so we have to use our anchor image and know how to find the box from there.

confirm_login()

Check if the current page shows a user is currently logged in.

expand_app_menu()

Open the web app menu

post(message)

Submit the given message to the current chat channel

reply_to_random(*args, **kwargs)

Select a random message that is visible and reply to it

select_channel(name)

Select the channel with the given name (or at least containing it)

show_menu_pane()

When the browser doesn’t have a lot of horizontal space Rocket Chat will collapse the pane that has the menus and channels and the like. This will show it if it is not already visible.