Sha256: d36e1767d6001b3a5d4f7e8996ba26038302b12239a85330a4f9b339db68d66f

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

require "spec_helper"

describe "MsUia::ListItem", if: SpecHelper.adapter == :ms_uia do
  let(:window) { RAutomation::Window.new(title: "MainFormWindow") }
  it "#exists" do
    expect(window.list_item(value: "Apple").exist?).to be true
    expect(window.list_item(value: "This is a sample text").exist?).to_not be true
  end

  it "#value" do
    expect(window.list_item(value: "Apple").value).to be == "Apple"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rautomation-2.0.1-x86-mingw32 spec/adapter/ms_uia/list_item_spec.rb
rautomation-2.0.1-x64-mingw32 spec/adapter/ms_uia/list_item_spec.rb