lib/puppeteer/page.rb in puppeteer-ruby-0.34.1 vs lib/puppeteer/page.rb in puppeteer-ruby-0.34.2
- old
+ new
@@ -765,9 +765,14 @@
@client.async_send_message('Page.navigateToHistoryEntry', entryId: entry['id']),
)
end
end
+ # Brings page to front (activates tab).
+ def bring_to_front
+ @client.send_message('Page.bringToFront')
+ end
+
# @param device [Device]
def emulate(device)
self.viewport = device.viewport
self.user_agent = device.user_agent
end