Wait for a DOM element

Wait for a DOM element to be available on the page


Demos & Screenshots

No screenshots provided yet. Have some video demos or screenshots of this brick in the wild?
Send them over to [email protected]!


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

Inputs

Name Required Type Description
selector multiple
maxWaitMillis integer Maximum time of to wait in milliseconds. If the value is less than or equal to zero, will wait indefinitely

Outputs

Name Required Type Description
No outputs for this brick defined.

Details

ID @pixiebrix/wait/element
Author @pixiebrix
Version 1.7.0
Created Aug. 17, 2021
Updated May 26, 2022

Related Bricks

  • No related bricks