apparition
apparition copied to clipboard
Initialize ChromeClient timeout with default Capybara timeout
When using session.visit()
, if the page includes indefinitely running Javascript, apparition hangs and never timeouts.
To reproduce the issue, create an HTML page having the following code and session.visit
it:
<script>
while(true) { }
</script>
Observe apparition hanging indefinitely.
To fix the problem, I'm initializing the ChromeClient
with the session_wait_time
value.