Skip to content

add a helper function to wait for element #569

@kmike

Description

@kmike

Something like splash:wait_for_element(css_selector, timeout, poll_interval).

It should do something like this (untested):

function Splash:wait_for_element(css, timeout, poll_interval)
  return splash:with_timeout(function()
    while not splash:select(css) do
      splash:wait(poll_interval)
    end
  end, timeout)
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions