lib/puppeteer/page.rb in puppeteer-ruby-0.0.12 vs lib/puppeteer/page.rb in puppeteer-ruby-0.0.13
- old
+ new
@@ -843,12 +843,12 @@
# @param {boolean} enabled
def cache_enabled=(enabled)
@frame_manager.network_manager.cache_enabled = enabled
end
- # @return {!Promise<string>}
+ # @return [String]
def title
- @title
+ main_frame.title
end
# /**
# * @param {!ScreenshotOptions=} options
# * @return {!Promise<!Buffer|!String>}