-
Notifications
You must be signed in to change notification settings - Fork 0
/
resource.robot
67 lines (57 loc) · 1.86 KB
/
resource.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
*** Settings ***
Documentation A resource file with reusable keywords and variables.
...
... The system specific keywords created here form our own
... domain specific language. They utilize keywords provided
... by the imported SeleniumLibrary.
Library SeleniumLibrary
*** Variables ***
${INDEX TITLE} leinadjmc
${ANOMALI TITLE} Threat Intelligence Platform | Anomali
${RESUME TITLE} danielcraigresume
${BROWSER} Chrome
${DELAY} 0
${INDEX URL} http://leinadjmc.com/
${ANOMALI URL} https://www.anomali.com/
${RESUME URL} ${INDEX URL}resume.html
${ANOMALI LINK} Anomali
${RESUME LINK} here
${TWITTER IMG} twitter
${TWITTER URL} https://twitter.com/leinadjmc
${LINKEDIN IMG} linkedin
${LINKEDIN URL} https://www.linkedin.com/in/leinadjmc/
${GITHUB IMG} github
${GITHUB URL} https://github.com/leinadjmc
${WIDTH} 100
${HEIGHT} 600
*** Keywords ***
Open Browser To Site
Open Browser ${INDEX URL} ${BROWSER}
Maximize Browser Window
Set Selenium Speed ${DELAY}
Site Should Be Open
Site should be open
Title Should Be ${INDEX TITLE}
Location Should Be ${INDEX URL}
Go To Index
Go To ${INDEX URL}
Site Should Be Open
Click the Anomali hyperlink
Site should be open
Click Link ${ANOMALI LINK}
Click the CV hyperlink
Site should be open
Click Link ${RESUME LINK}
Test that PDF is displayed
Test that PDF is displayed
Location Should Be ${RESUME URL}
Page should contain element name:pdfview
Click the Twitter Image
Site should be Open
Click Image name:${TWITTER IMG}
Click the Linkedin Image
Site should be Open
Click Image name:${LINKEDIN IMG}
Click the Github Image
Site should be Open
Click Image name:${GITHUB IMG}