RPA.RobotLogListener
Listener method for keyword end.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | null | keyword name | |
attributes | null | keyword attributes |
param name: | keyword name |
---|---|
param attributes: | |
keyword attributes |
If name exists in the protected keywords list then log level is restored back to level it was before settings to NONE.
Set keywords which should not execute SeleniumLibrary default behaviour of running keyword on failure.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
keywords | str, List, None | None | list of keywords to mute |
optional_keyword_to_run | str, None | None | name of the keyword to execute if keyword defined by keywords fail |
param keywords: | list of keywords to mute |
---|---|
param optional_keyword_to_run: | |
name of the keyword to execute if keyword defined by keywords fail |
Keyword names do not need to be full names of keywords, ie. all keywords matching even partially will be affected. Run Keyword would match all BuiltIn library keywords (17 keywords in RF 3.2.1) and of course all Run Keyword named keywords in any resource and/or library file which are imported would be matched also.
By default SeleniumLibrary executes Capture Page Screenshot on failure.
If optional_keyword_to_run is not given then nothing is done on failure, but this can be set to override SeleniumLibrary default behaviour for a set of keywords.
Register keywords that are allowed only INFO level logging
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
names | str, List, None | None | list of keywords to protect |
param names: | list of keywords to protect |
---|
Register keywords that are not going to be logged into Robot Framework logs.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
names | str, List, None | None | list of keywords to protect |
param names: | list of keywords to protect |
---|
Listener method for keyword start.
Arguments
Argument | Type | Default value | Description |
---|---|---|---|
name | null | keyword name | |
attributes | null | keyword attributes |
param name: | keyword name |
---|---|
param attributes: | |
keyword attributes |
If name exists in the protected keywords list then log level is temporarily set to NONE.