Sha256: 272e0c4c26536dc63837f8e2c2603c86e5da0011ae603fbf88b210c1016ae73d

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

desc 'with-firefox-for-selenium COMMAND', 'Run a command with firefox for selenium set up'
long_desc <<-LONGDESC
Example: `geordi with-firefox-for-selenium b cucumber`

Useful when you need Firefox for Selenium, but can't use the `geordi cucumber`
command.
LONGDESC

def with_firefox_for_selenium(*command)
  note 'Setting up Firefox for Selenium ...'
  require 'geordi/cucumber'
  Cucumber.new.setup_vnc
  FirefoxForSelenium.setup_firefox
  puts

  note_cmd command.join(' ')
  system *command # Util.system! would reset the Firefox PATH
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geordi-1.1.4 lib/geordi/commands/with_firefox_for_selenium.rb
geordi-1.1.3 lib/geordi/commands/with_firefox_for_selenium.rb
geordi-1.1.2 lib/geordi/commands/with_firefox_for_selenium.rb
geordi-1.1.1 lib/geordi/commands/with_firefox_for_selenium.rb
geordi-1.1.0 lib/geordi/commands/with_firefox_for_selenium.rb