Sha256: e132180289b5ab006cf60763cfd0aec49011e83dff21dba8bd500ffe72948435
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' describe Uia do context '#find_element' do Given(:main_window) { find_element id: 'MainFormWindow' } context 'by id' do Then { find_element(id: 'MainFormWindow') != nil} end context 'by process id' do Then { find_element(pid: @app.pid) != nil } end context 'by runtime id' do Then { find_element(runtime_id: main_window.runtime_id) != nil } end context 'by window handle' do Then { find_element(handle: main_window.handle) != nil } end context 'invalid locators' do When(:bad_input) { find_element(bad: 123) } Then { bad_input.should have_failed(BadLocator, '{:bad=>123} is not a valid locator') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uia-0.0.5.1 | spec/uia_spec.rb |
uia-0.0.5 | spec/uia_spec.rb |