You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm still experiencing issue #163 (and I know it was fixed in #174). Tried both published version of this crate as well as directly from main branch, on both Chrome and Chromium.
Config timeout is not respected (it still waits 30 seconds, no matter the launch_timeout or request_timeout value;
After 30 seconds, failed to navigate: Timeout is printed;
Interestingly, in both Chrome and Chromium, if I run headed, then scroll to about 2/3 of the way down the page, the page loads;
EDIT: Oddly enough, this only seems to happen on certain pages (e.g. MDN); other pages load fine, e.g.:
The example code in iframe-workaround.rs seems to require launching chromium manually and has a hard-coded DevTools URL. Might that have something to do with why the example worked?
macOS Sonoma 14.5
rustc 1.79.0
Google Chrome 126.0.6478.183
Chromium 129.0.6620.0
I found a workaround for this on the MDN IFRAME page (hopefully works on most similar pages) by injecting the following JavaScript, which calls scrollIntoView() on each IFRAME element on the page. Not ideal or good practice, but it shows that the frame must be scrolled into view in order to finish loading.
Maybe this is an issue with lazily loaded frames?
(This injection must occur BEFORE navigation to the page.)
let page = browser.new_page("about:blank").await?;
page.execute(AddScriptToEvaluateOnNewDocumentParams::builder().source("document.addEventListener('DOMContentLoaded', function() { const iframes = [...document.querySelectorAll('iframe')] for (const iframe of iframes) { iframe.scrollIntoView() } })",).build()?,).await?;
page.goto("https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe").await?;
I'm still experiencing issue #163 (and I know it was fixed in #174). Tried both published version of this crate as well as directly from main branch, on both Chrome and Chromium.
launch_timeout
orrequest_timeout
value;failed to navigate: Timeout
is printed;The example code in
iframe-workaround.rs
seems to require launching chromium manually and has a hard-coded DevTools URL. Might that have something to do with why the example worked?macOS Sonoma 14.5
rustc 1.79.0
Google Chrome 126.0.6478.183
Chromium 129.0.6620.0
main.rs:
Cargo.toml:
The text was updated successfully, but these errors were encountered: