Sha256: ac66cc0193f08123342b038edf99810b4efc8b7b48b28e1819f17a4c44d50f8f
Contents?: true
Size: 680 Bytes
Versions: 2
Compression:
Stored size: 680 Bytes
Contents
#encoding: utf-8 require File.expand_path 'app/cases/spec_helper' describe 'An example show you how to use lazyman' do before :all do @keyword = 'watir-webdriver' end it 'should search baidu using key word' do baidu_page = $navi.goto_baidu_page baidu_page.keyword = @keyword baidu_page.search_element.click result_page = SearchResultPage.new baidu_page.browser result_page.first_result.should eq 'watir-webdriver_百度百科' end it 'should have correct search result' do baidu_page = $navi.goto_baidu_page result_page = baidu_page.search_for @keyword result_page.first_result.should eq 'watir-webdriver_百度百科' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lazyman-0.1.4 | lib/lazyman/generators/lazyman/app/cases/examples/baidu_example_spec.rb |
lazyman-0.1.3 | lib/lazyman/generators/lazyman/app/cases/examples/baidu_example_spec.rb |