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