Closed waldofe closed 7 years ago
What version of Capybara and PhantomJS?
Thanks for the quick answer @twalpole! Capybara 2.13 and PhantomJS 2.1.1.
@oswaldoferreira This probably won't fix the issue, but just an FYI -- rather than using a find in within_frame you can just pass it the id of the frame you're looking for and it will use the :frame selector to locate it.
within_frame("z_hppm_iframe") do
# ...
end
@oswaldoferreira Does sleeping for a few seconds before calling within_frame
make a difference?
Already tried using about 30 seconds, but no changes.
FYI, it's working on capybara-webkit 1.14.
@oswaldoferreira I haven't been able to replicate this, although from reading the code I would guess that either the frame page is requesting a resource that is hanging ( throttled, etc ) or there is a race condition in the page loading. Could you turn on the phantomjs_options: ['--debug=true']
option in your driver registration and/or blacklist/whitelist the resources the page is requesting, and let me know if that provides any more info.
or (of course) a minimal reproducible example :)
@oswaldoferreira I created a new 'frame_timeout' branch with debugging info around the frame changing code, please give it a try and let me know what it outputs
Closing due to lack of response, we will reopen if/when the requested info is provided.
I'm trying to use the following code to access an iFrame scope.
And I'm getting (already tried using high timeout values):
Debug log seems to stop on
push_frame
step:More information on the iFrame being loaded:
Obs.: When using
save_and_open_page
I can see that the iFrame is already loaded.Tried on: