NAME
Kernel::Test::Role::Selenium::HandlesFormEditorField – role to interact with form editor fields in selenium tests.
FormEditorFieldSetText()
Test if a web element is visible in the screen.
$Self->FormEditorFieldSetText(
InternalFieldName => 'Article.Body', # required, internal name of the form editor field,
LabelSelector => '//someelement[...]', # required, XPath selector for the label next to the form editor field
Text => '', # required, text to be set
Clear => 1, # optional, default 0, will clear the field before
);
FormEditorFieldGetText()
Gets the text for the specified form editor field selector.
$Self->FormEditorFieldGetText(
InternalFieldName => 'Article.Body', # required, internal field name of the form editor field
);
Returns the text of the form editor field.
FormEditorFieldCheckText()
Checks if the form editor field matches the given text.
$Self->FormEditorFieldCheckText(
InternalFieldName => 'Article.Body', # required, internal field name of the form editor field
Text => '', # optional, text which should be checked
);