If you don’t need to download certain elements, e.g. images, flash, CSS, during monitoring or you wish to filter out elements that return errors, you can enable network filters and add filter rules to a script. There are two main types of filtering rules:

  1. Ignore elements corresponded to a mask (Deny)
  2. Download elements only corresponded to a mask (Allow)

To add a new network filter, from the script context menu select Network Filter, and select one from the available options.

Config

Provides a way to conveniently add general filtering option:

  • Default Action – determines if all elements will be filtered or allowed by default.
  • Allow – the field contains a mask for all elements that will be allowed. If the Default Action is set to “deny all” only elements listed in this field will be allowed to download.
  • Deny – the field contains a mask for all elements that must be filtered out.

Advanced

Provides the following options:

  • Allow – the field contains a mask for all elements that must be allowed.
  • Deny – the field contains a mask for all elements that must be filtered out.
  • Clear – adds the point that clears previously set filtering rules.

Before applying a network filter, be sure that your root HTML element (for example http://www.example.com) isn’t filtered. Specific filtered elements should be similar to the following within your script:

NetworkFilter.Deny ("http://www.example.com/folderpath/FilteredOutElement.ttf");