Something like `splash:wait_for_element(css_selector, timeout, poll_interval)`. It should do something like this (untested): ```lua 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 ```