YusukeIwaki/puppeteer-ruby

undefined method `setDefaultNavigationTimeout' for Puppeteer::Page

Closed this issue · 3 comments

Hi!

This worked with an earlier version but doesn't anymore:
@page.setDefaultNavigationTimeout(0);
NoMethodError (undefined method `setDefaultNavigationTimeout' for #Puppeteer::Page:0x00007fa27404f808

In the docs I see references to Puppeteer::TimeoutSettings but I cant' figure out to assign it...

Thanks for a great project!

@inspire22 Thank you for your interest in this Gem. Could you try page.default_navigation_timeout = 0 ?

https://github.com/YusukeIwaki/puppeteer-ruby/blob/main/docs/api_coverage.md
This document shows the Ruby version of method name for each JS method.
image

Feel free to repopen if needed. Thank you.

Working great, thanks!