Sha256: 2a6d2797b33ab894f85d37ab90b35b3a9461824575bd89bab39b2692e8714c4a

Contents?: true

Size: 1.19 KB

Versions: 22

Compression:

Stored size: 1.19 KB

Contents

module Login1

  def run

    browser = open_browser

    go_to_url(browser, 'www.yahoo.com')
    wait_until_exists(browser, :link, :text, 'Sign In')
    click(browser, :link, :text, 'Sign In')
    wait_until_exists(browser, :text_field, :id, 'username')
    set_textfield(browser, :id, 'username', 'awetesta@yahoo.com')
    set_textfield(browser, :id, 'passwd', 'awetest001')
    #wait_until_exists(browser, :button, :text, 'Sign In')
    click(browser, :button, :text, 'Sign In')
    sleep_for(8)
    wait_until_text(browser, 'HI, A')
    sleep_for(3)
    click(browser, :link, :text, 'Sign Out')

    go_to_url(browser, 'www.yahoo.com')
    wait_until_exists(browser, :link, :text, 'Sign In')
    click(browser, :link, :text, 'Sign In')
    wait_until_exists(browser, :text_field, :id, 'username')
    set_textfield(browser, :id, 'username', 'awetestt3@yahoo.com')
    set_textfield(browser, :id, 'passwd', 'awetest001')
    #wait_until_exists(browser, :button, :text, 'Sign In')
    click(browser, :button, :text, 'Sign In')
    sleep_for(8)
    wait_until_text(browser, 'HI, T-THREE')
    sleep_for(3)
    click(browser, :link, :text, 'Sign Out')

    browser.close

  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
awetestlib-1.2.4-x86-mingw32 test/login_1.rb
awetestlib-0.1.30 test/login_1.rb
awetestlib-0.1.30-x86-mingw32 test/login_1.rb
awetestlib-0.1.30pre3 test/login_1.rb
awetestlib-0.1.30pre3-x86-mingw32 test/login_1.rb
awetestlib-0.1.30pre2 test/login_1.rb
awetestlib-0.1.30pre2-x86-mingw32 test/login_1.rb
awetestlib-0.1.30pre1-x86-mingw32 test/login_1.rb
awetestlib-0.1.30pre1 test/login_1.rb
awetestlib-0.1.29 test/login_1.rb
awetestlib-0.1.29-x86-mingw32 test/login_1.rb
awetestlib-0.1.29pre4 test/login_1.rb
awetestlib-0.1.29pre4-x86-mingw32 test/login_1.rb
awetestlib-0.1.29pre3-x86-mingw32 test/login_1.rb
awetestlib-0.1.29pre3 test/login_1.rb
awetestlib-0.1.29pre1 test/login_1.rb
awetestlib-0.1.28-x86-mingw32 test/login_1.rb
awetestlib-0.1.27-x86-mingw32 test/login_1.rb
awetestlib-0.1.26-x86-mingw32 test/login_1.rb
awetestlib-0.1.25-x86-mingw32 test/login_1.rb