We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Something like splash:wait_for_element(css_selector, timeout, poll_interval).
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
The text was updated successfully, but these errors were encountered:
Hey @kmike I did a similar method here but gave me high cpu usage. I will be testing this one out
Edit: Definitely worked fine in my production scripts
Sorry, something went wrong.
with_timeout runs even after selecting the css, stops only when timeout is met
No branches or pull requests
Something like
splash:wait_for_element(css_selector, timeout, poll_interval)
.It should do something like this (untested):
The text was updated successfully, but these errors were encountered: