Wait for a DOM element

Wait for a DOM element to be available on the page

by @pixiebrix

How to Use

The Wait for DOM Element brick can be placed between bricks to not run unless the declared element is loaded, and if it isn’t wait until it is. After adding it use the selector button to select the element in question or use jQuery to select it manually. If desired you can set a maximum timeout for waiting.

Use Case

  • Wait for a certain part of the page to load prior to trigger another brick
  • Wait for a menu to appear prior to click another element
  • Wait for an HTML element to appear on the page and click on it


Name Required Type Description
selector multiple
isRootAware boolean Whether the brick should run in the context of the target element, or document
maxWaitMillis integer Maximum time of to wait in milliseconds. If the value is less than or equal to zero, will wait indefinitely


Name Required Type Description
No outputs for this brick defined.

Related Tags