Sha256: c95ef09afe27cfd94bceb209f3632b1e1d156fce4780b6e3234b6c2f5cc3a4ef

Contents?: true

Size: 754 Bytes

Versions: 2

Compression:

Stored size: 754 Bytes

Contents

Before do
  begin
    def selenium
      case $_CONFIG['DeviceName'].upcase.to_sym
        when :IOS
          @driver ||= Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities_ios, :url => server_url)
        when :ANDROID
          @driver ||= Selenium::WebDriver.for(:remote, :desired_capabilities => capabilities_android, :url => server_url)
        else
          puts "\nERROR: *** Invalid Device Nane!. Please check the config from $_CONFIG['DeviceName'] = #{$_CONFIG['DeviceName']}"
      end
    end
  rescue StandardError => myStandardError
    put_log "\nERROR: *** #{myStandardError}"
  end
end

After do
  begin
    selenium.quit
  rescue StandardError => myStandardError
    puts "\nERROR: *** #{myStandardError}"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Ifd_Mobile-0.1.1 project/features/support/hooks.rb
Ifd_Mobile-0.1.0 project/features/support/hooks.rb