lib/testnow.rb in testnow-0.1.1 vs lib/testnow.rb in testnow-0.1.2
- old
+ new
@@ -3,10 +3,11 @@
require 'testnow/firefox'
require 'testnow/android_chrome'
require 'testnow/ie'
require 'testnow/edge'
require 'testnow/firefox_gecko'
+require 'testnow/phantomjs'
module TestNow
def init
ENV['BROWSER'] = "firefox" if ENV['BROWSER'].nil?
@@ -28,12 +29,12 @@
edge.launch_driver_edge
when "firefoxgecko","geckofirefox","firefoxnew","newfirefox","firefox"
firefox_gecko = FirefoxGecko.new
firefox_gecko.launch_driver_firefox_gecko
when "phantomjs"
- puts "Coming Soon!!\n"
- puts "Apologies for inconvenience...\n\n"
+ phantomjs = PhantomJS.new
+ phantomjs.launch_driver_phantomjs
when "chromemobile","mobilechrome"
chrome = Chrome.new
chrome.launch_driver_chrome_mobile
when "firefoxold","oldfirefox"
ff = Firefox.new
@@ -61,9 +62,12 @@
edge = MicrosoftEdge.new
edge.launch_watir_edge
when "firefoxgecko","geckofirefox","firefoxnew","newfirefox","firefox"
firefox_gecko = FirefoxGecko.new
firefox_gecko.launch_watir_firefox_gecko
+ when "phantomjs"
+ phantomjs = PhantomJS.new
+ phantomjs.launch_watir_phantomjs
when "chromemobile","mobilechrome"
chrome = Chrome.new
chrome.launch_watir_chrome_mobile
when "firefoxold","oldfirefox"
ff = Firefox.new