require 'rspec_helper'

describe 'IE Grid', if: WINDOWS do
  before(:all) do
    @selenium = Selenium::WebDriver.for(:remote, desired_capabilities: :ie)
  end

  after(:all) do
    @selenium.quit
  end

  it 'Checks if Flash installed' do
    @selenium.get('https://helpx.adobe.com/flash-player.html')
    element = @selenium.find_element(:id, 'displaybutton')
    element.click
    element = @selenium.find_element(:id, 'flashversioninfo')
    expect(element.text).to_not eq('Not installed')
  end
end

require 'rspec_helper'

describe 'IE Grid', if: WINDOWS do
  before(:all) do
    @selenium = Selenium::WebDriver.for(:remote, desired_capabilities: :ie)
  end

  after(:all) do
    @selenium.quit
  end

  it 'Checks if Flash installed/enabled' do
    @selenium.get('https://helpx.adobe.com/flash-player.html')
    element = @selenium.find_element(:id, 'displaybutton')
    element.click
    element = @selenium.find_element(:id, 'flashversioninfo')
    expect(element.text).to_not eq('Not installed')
    expect(element.text).to_not eq('Flash Player disabled')
  end
end

Check if Flash is enabled for IE
Check if Flash is enabled for IE
