From 85cc51acab3dcd2c6c6b1b9320eee0b2b7f194bb Mon Sep 17 00:00:00 2001 From: somkiat Date: Fri, 13 Jun 2014 23:31:16 +0700 Subject: [PATCH] Add demo for gmail --- gmail.txt | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/gmail.txt b/gmail.txt index c1e2a4d..d5cf7ae 100644 --- a/gmail.txt +++ b/gmail.txt @@ -5,14 +5,37 @@ Library Selenium2Library *** Testcases *** -My first test case - Open Browser http://www.gmail.com gc +Login and Logout + Open Browser http://www.gmail.com Maximize Browser Window - Input Text Email your-email - Input Text Passwd your-password + Input Text Email somkiat.p@gmail.com + Input Text Passwd Click Button signIn - Wait Until Page Contains Element xpath=//div[1]/a/span[@class='gb_X gbii'] 10 - Click Element xpath=//div[1]/a/span[@class='gb_X gbii'] - Wait Until Element Is Visible xpath=//div[1]/a/span[@class='gb_X gbii'] + Wait Until Page Contains Element xpath=//div[1]/a/span[@class='gb_W gbii'] 10 + Click Element xpath=//div[1]/a/span[@class='gb_W gbii'] + Wait Until Element Is Visible xpath=//div[1]/a/span[@class='gb_W gbii'] Click Link gb_71 Wait Until Page Contains Sign in to continue to Gmail + + +Compose New Email + Open Browser http://www.gmail.com + Maximize Browser Window + Input Text Email somkiat.p@gmail.com + Input Text Passwd + Click Button signIn + Wait Until Page Contains Element xpath=//div[@class='z0']/div 10 + Click Element xpath=//div[@class='z0']/div + + Wait Until Page Contains Element xpath=//div[@class='wO nr l1']/textarea + Input Text xpath=//div[@class='wO nr l1']/textarea somkiat.p@gmail.com + Input Text xpath=//div[@class='aoD az6']/input ทดสอบ + + Wait Until Element Is Visible xpath=//div[@class='Am Al editable']/iframe + Select Frame xpath=//div[@class='Am Al editable']/iframe + Wait Until Element Is Visible xpath=//body + Execute JavaScript document.body.innerHTML = "some html"; + Unselect Frame + + Wait Until Page Contains Element xpath=//div[@class='J-J5-Ji']/div[@class='T-I J-J5-Ji aoO T-I-atl L3'] + Click Element xpath=//div[@class='J-J5-Ji']/div[@class='T-I J-J5-Ji aoO T-I-atl L3'] \ No newline at end of file