Module utils
Maestro utils. Functions to help with general use of Maestro (e.g.
Maestro command input).
Rationale: When recording a Squish test for Maestro, there are several
operations that are performed repetitively. For example, there are many
instances in Squish when it is better to use a Maestro command in the
command input area. These functions help with these general uses of
Maestro in Squish.
To use, add the following to the tope of your test.py:
source(findFile("scripts", "maestro/utils.py"))
Will append necessary objects to your objects.map. If one of the
required names is already defined in your objects.map, it will not
overwrite it unless you set OVERWRITE_OBJECTS=True before importing this
module.
Copyright:
(c) Schrodinger, LLC. All rights reserved
|
clickAtom(atomNumber)
Clicks atomNumber atom in the workspace |
|
|
|
commandInput(command)
Checks that the command input area is showing. |
|
|
|
OVERWRITE_OBJECTS = False
hash(x)
|
Checks that the command input area is showing. If not, opens it and
inputs a specified command.
|