Error running onStopped callback

Hi,

Do anybody know why below error message spits out in my cmd window?
Thanks in advance! :slight_smile:

!!! error running onStopped callback: TypeError: callback is not a
function
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown

-Script-
require ‘rubygems’
require ‘selenium-webdriver’

driver = Selenium::WebDriver.for :firefox
driver.get “http://google.com

element = driver.find_element name: ‘q’
element.send_keys “Cheese!”
element.submit

puts “Page title is #{driver.title}”

wait = Selenium::WebDriver::Wait.new(:timeout => 10)
wait.until { driver.title.downcase.start_with? “cheese!” }

puts “Page title is #{driver.title}”
driver.quit

-Result-
Page title is Google
Page title is cheese! - Google Search
!!! error running onStopped callback: TypeError: callback is not a
function
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs