Sha256: 90564dc6d47f8b85a5ad2f135859050133b5bd4d585f5045facda5f76642d206

Contents?: true

Size: 403 Bytes

Versions: 33

Compression:

Stored size: 403 Bytes

Contents

require 'spec_helper'

describe Uia::Patterns::Invoke do
  let(:main) { Uia.find_element id: 'MainFormWindow' }
  let(:radio_label) { main.find(id: 'radioButtonLabel') }

  Given(:reset) { main.find(name: 'Reset').as :invoke }

  context '#invoke' do
    Given { main.find(name: 'Option 2').click }

    When { reset.invoke }
    Then { radio_label.name == 'No option selected' }
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
uia-1.0 spec/uia/patterns/invoke_spec.rb
uia-0.8 spec/uia/patterns/invoke_spec.rb
uia-0.7 spec/uia/patterns/invoke_spec.rb
uia-0.7.alpha.1 spec/uia/patterns/invoke_spec.rb
uia-0.6 spec/uia/patterns/invoke_spec.rb
uia-0.5 spec/uia/patterns/invoke_spec.rb
uia-0.4.4 spec/uia/patterns/invoke_spec.rb
uia-0.4.3 spec/uia/patterns/invoke_spec.rb
uia-0.4.2 spec/uia/patterns/invoke_spec.rb
uia-0.4.1 spec/uia/patterns/invoke_spec.rb
uia-0.4 spec/uia/patterns/invoke_spec.rb
uia-0.3.3 spec/uia/patterns/invoke_spec.rb
uia-0.3.2 spec/uia/patterns/invoke_spec.rb
uia-0.3.1 spec/uia/patterns/invoke_spec.rb
uia-0.3 spec/uia/patterns/invoke_spec.rb
uia-0.2.1 spec/uia/patterns/invoke_spec.rb
uia-0.2 spec/uia/patterns/invoke_spec.rb
uia-0.1.3.1 spec/uia/patterns/invoke_spec.rb
uia-0.1.3 spec/uia/patterns/invoke_spec.rb
uia-0.1.2.3 spec/uia/patterns/invoke_spec.rb