Capture Element
Beta Feature: This feature is currently in beta and restricted to approved users. If you're are interested in trying it, please contact support and we can enable this feature for your account.
Type: capture_element
Returns the innerHTML, essentially the contents, of a particular element on the page. This can be used when you are only interested in the contents of a particular element.
Parameters
Name
Type
Required
Description
timeout
integer
The maximum amount of time the browser should wait for the element defined by the selector to appear. Default: 5000 (5s)
See universal parameters.
Usage
Click an element on the page
The following code will wait 1 second for the .page_contents
element to appear and return an html file containg the div's innerHTML.
Last updated