RBM - Configure Content Check using Playback Script

RBM - Configure Content Check using Playback Script

Related topic:
Check out this link if you want to configure content check through the Chrome Extension (Web Transaction Recorder).

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 the script:
  1. assert_text_present( "<text>", "<true/false>" )             -> Checks if the given text is present
  2. assert_text_not_present( "<text>", "<true/false>" )      -> Checks if the given text is not present

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 second 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

First parameter - Text content that needs to be verified for the presence in the webpage.
Second parameter - To decide whether to proceed with further steps or not, when the content check operation fails.
Examples:
  1. assert_text_present("Applications", "true")      -> This script checks if the word 'Applications' is present and continues to the next step even if the word is not present.
  2. assert_text_present("Applications", "false")      -> This script checks if the word 'Applications' is present and continues to the next step only if the word is present.

Steps to configure content check

  1. Visit the monitor details page of corresponding Real Browser Monitor.
  2. Choose "Monitor Actions" -> "Edit Playback Script" option. 'Real browser script viewer' window will be opened as a pop up.
  3. In the pop up dialog box, search for the step to which the content check needs to be added.
  4. Add the script line, referring to the syntax as mentioned above, based on your requirement. The requirement might vary
    1. Whether to check if the text is present or not present.
    2. Whether to check the content before or after the intended action.
  5. Example for 'assert_text_present':


  6. Example for 'assert_text_not_present':


Configure Title check

Applications Manager also provides an option to allow the user to check for specific title value for any window or browser tab. It accepts only one parameter, the title which is to be checked. In case of failure, the data collection will be stopped at that particular step itself, and an alert will be triggered for the monitor.
Syntax of the script:
assert_title("<title>")      -> This script checks if the title of the current window is the given text.

Example for 'assert_title':


Note: 'assert_title' script works case sensitive. Provide the title to be checked in exact case.


        New to ADManager Plus?

          New to ADSelfService Plus?

            • Related Articles

            • RBM - Add content check via Web Transaction Recorder (Chrome Extension)

              Related topic: Check out this link if you want to configure content check through the Playback Script. Applications Manager's Real Browser Monitoring allows to configure content check to be done on the webpages by configuring checks for both Content ...
            • 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 EUM Agent ...
            • RBM - Chrome playback Troubleshooting

              Chrome playback option not enabled Verify End User Monitoring Agent version. End User Monitoring Agent (version 17 and above) & Applications Manager (Build no: 15000 and above) is required Check error message in End User Monitoring Agent settings ...
            • RBM - FAQs

              1. I am unable to create a new RBM monitor. Go to  the Support tab 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 the Add-on since RBM requires the ...