Skip to content

Instantly share code, notes, and snippets.

@andreastt
Created March 9, 2011 15:56
Show Gist options
  • Save andreastt/862443 to your computer and use it in GitHub Desktop.
Save andreastt/862443 to your computer and use it in GitHub Desktop.
# idle.rb:
require 'rubygems'
require 'operawatir'
browser = OperaWatir::Browser.new
puts "OperaIdle: #{browser.driver.isOperaIdleAvailable}"
browser.quit
● ruby idle.rb
OperaIdle: true
Mar 9, 2011 5:07:04 PM com.opera.core.systems.scope.stp.StpConnection canRead
INFO: Channel closed : localhost
Mar 9, 2011 5:07:04 PM com.opera.core.systems.WaitState onDisconnected
INFO: Got disconnected.
Mar 9, 2011 5:07:04 PM com.opera.core.systems.ScopeServices quitOpera
INFO: Caught exception when trying to shut down (cannot send quit). : Problem encountered : DISCONNECTED
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-27-generic', java.version: '1.6.0_20'
Driver info: driver.version: OperaDriver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment