RBM - Configure Element Based Content Check using Playback Script
Element based Content Check option
Applications Manager's Real Browser Monitoring allows to configure content check for a particular element in the webpages. One can configure checks for both Content to be present and Content not to be present for the specified element.
Syntax of the script:
- assert_element_keyword_present_check("<Identifier Type>", "<Identifier Value>", "<text>", "<true/false>") -> Checks if the given text is present for the element
- assert_element_keyword_not_present_check("<Identifier Type>", "<Identifier Value>", "<text>", "<true/false>") -> Checks if the given text is not present for the element
Proceed with further steps?
Applications Manager also provides an option to allow the user to choose whether to proceed with further steps (if any) in the transaction or not. The fourth parameter in the above script accepts Boolean (true/false) values only, based on which Applications manager decides whether to proceed with further steps or not, when the content check operation fails.
Definitions
<Identifier Type> - The type of the identifier used to locate the given element in the webpage. Ex - id, name, xpath.
<Identifier Value> - The value of the identifier used to locate the given element in the webpage. Ex - For id -> userName, for xpath -> //*[@id='loginPage']/section/div[2]/form/input[6]
<text>- Text content that needs to be verified for the presence for the given element in the webpage.
<true/false> - To decide whether to proceed with further steps or not, when the content check operation fails.
Examples:
- assert_element_keyword_present_check("id", "id_applications", "Applications", "true") -> This script checks if the word 'Applications' is present for the element "id_applications" and continues to the next step even if the element or word or is not present.
- assert_element_keyword_present_check("id", "id_applications", "Applications", "false") -> This script checks if the word 'Applications' is present for the element "id_applications" and continues to the next step only if the element and the word is present.
Steps to configure content check
- Visit the monitor details page of corresponding Real Browser Monitor.
- Choose "Monitor Actions" -> "Edit Playback Script" option. 'Real browser script viewer' window will be opened as a pop up.
- In the pop up dialog box, search for the step to which the content check needs to be added.
- Add the script line, referring to the syntax as mentioned above, based on your requirement. The requirement might vary
- Whether to check if the text is present or not present in an element.
- Whether to check the content of an element before or after the intended action.
Example for 'assert_element_keyword_present_check':
Example for 'assert_element_keyword_not_present_check':
Note:
1. The content provided for Element based content check has to be directly visible in the page.
2. The contents present in Element title, mouseover, placeholder, value, label should not be provided.
New to ADSelfService Plus?
Related Articles
RBM - Configure Content Check using Playback Script
Content Check option Applications Manager's Real Browser Monitoring allows to configure content check to be done on the webpages in between the steps. One can configure checks for both Content to be present and Content not to be present. Syntax of ...
RBM - FAQs
1. I am unable to create a new RBM monitor. Go to the Settings -> Support tab in Applications Manager and check the license Information. Verify if "EUM Add-on" option is enabled. If it is not enabled, contact sales@manageengine.com to purchase/trial ...
RBM - Steps to perform Test Playback
What is Test Playback? Applications Manager's Real Browser Monitor works based on a playback script that is created during the monitor creation or recording of the transactions. This playback script will contain Locators to locate the HTML elements ...
RBM - Enabling the Playback using Microsoft Edge browser
Note: Please note that playback using the Microsoft Edge browser is possible only in a Windows server with Microsoft Edge installed on it Please find the below steps to enable the Playback using Microsoft Edge in an EUM Agent: Download the compatible ...
RBM - Add content check via Web Transaction Recorder (Browser Extension)
Related topic: Check out this link if you want to configure content check through the Playback Script. The below mentioned steps are supported only in Firefox Recorder. For Chrome and Edge recorders, refer here for steps to add content check during ...