-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAutoGmail.robot
41 lines (34 loc) · 1.15 KB
/
AutoGmail.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
*** Settings ***
Suite Setup Go to Gmail
Suite Teardown Close All Browsers
Test Template Gmail Login with Invalid Credentials should fail
Library Selenium2Library timeout=10 implicit_wait=10
*** Variables ***
${signInElem} id=signIn
${vemail} nstest739@gmail.com
${emailPass} pass
${emailElem} id=Email
${emailPassElem} id=Passwd
${inboxElem} xpath=//a[contains(@title,'Inbox')]
${browser} ff
${homepage} http://www.gmail.com
*** Test Cases ***
Invalid Username
invalid@gmail.com ${emailPass}
Invalid Password
${vemail} invalidpass
*** Keywords ***
Gmail Login with Invalid Credentials should fail
[Arguments] ${email} ${pass}
Is Visible ${signInElem}
Input Text ${emailElem} ${email}
Input Password ${emailPassElem} ${pass}
Click Button ${signInElem}
#Is Visible ${inboxElem}
Is Visible
[Arguments] ${element}
Wait Until Element Is Visible ${element}
Go to Gmail
Open Browser ${homepage} ${browser}
Login should have failed
Wait Until Page Cointains The email or password you entered is incorrect.