Sha256: a6cae3701a2563bc9b3e9c59af7f9bdb5ab5ea0971f1407a63dd9886bb28c8fc
Contents?: true
Size: 792 Bytes
Versions: 2
Compression:
Stored size: 792 Bytes
Contents
# frozen_string_literal: true module PuppeteerEntity module Attributes class WaitForFunction < Dry::Struct transform_keys(&:to_sym) # The function, or statement, to be evaluated in browser context attribute :fn, Types::Coercible::String # An interval at which the pageFunction is executed, defaults to raf. If polling is a number, then it is treated as an interval in milliseconds at which the function would be executed. If polling is a string, then it can be one of the following values: "raf" or "mutation" attribute? :polling, Types::Coercible::String.optional # Maximum time to wait for in milliseconds. Defaults to 30000 (30 seconds). Pass 0 to disable timeout. attribute? :timeout, Types::Coercible::Integer.optional end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppeteer_entity-0.1.1 | lib/puppeteer_entity/attributes/wait_for_function.rb |
puppeteer_entity-0.1.0 | lib/puppeteer_entity/attributes/wait_for_function.rb |