Initial commit
This commit is contained in:
15
Resources/CommonWeb.robot
Normal file
15
Resources/CommonWeb.robot
Normal file
@@ -0,0 +1,15 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
|
||||
*** Variables ***
|
||||
${BROWSER} chrome
|
||||
${URL} https://automationplayground.com/front-office/
|
||||
|
||||
*** Keywords ***
|
||||
Begin Web Test
|
||||
Open Browser about:blank ${BROWSER}
|
||||
Maximize Browser Window
|
||||
Go To ${URL}
|
||||
|
||||
End Web Test
|
||||
Close All Browsers
|
||||
40
Resources/FrontOfficeApp.robot
Normal file
40
Resources/FrontOfficeApp.robot
Normal file
@@ -0,0 +1,40 @@
|
||||
*** Settings ***
|
||||
Resource ./PO/Landing.robot
|
||||
Resource ./PO/About.robot
|
||||
Resource ./PO/Contact.robot
|
||||
Resource ./PO/Portofolio.robot
|
||||
Resource ./PO/Services.robot
|
||||
Resource ./PO/Team.robot
|
||||
Resource ./PO/TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
${TOP_NAV_ABOUT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[4]/a
|
||||
${TOP_NAV_CONTACT_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[6]/a
|
||||
${TOP_NAV_PORTOFOLIO_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[3]/a
|
||||
${TOP_NAV_SERVICES_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[2]/a
|
||||
${TOP_NAV_TEAM_LINK} xpath=//*[@id="bs-example-navbar-collapse-1"]/ul/li[5]/a
|
||||
|
||||
*** Keywords ***
|
||||
Go to "Home" page
|
||||
Landing.Home Page
|
||||
Landing.Verify Page
|
||||
|
||||
GO to "About" Page
|
||||
TopNav.Select "About" Page
|
||||
About.Verify Page
|
||||
|
||||
GO to "Contact" Page
|
||||
TopNav.Select "Contact" Page
|
||||
Contact.Verify Page
|
||||
|
||||
GO to "Portofolio" Page
|
||||
TopNav.Select "Portofolio" Page
|
||||
Portofolio.Verify Page
|
||||
|
||||
GO to "Services" Page
|
||||
TopNav.Select "Services" Page
|
||||
Services.Verify Page
|
||||
|
||||
GO to "Team" Page
|
||||
TopNav.Select "Team" Page
|
||||
Team.Verify Page
|
||||
13
Resources/PO/About.robot
Normal file
13
Resources/PO/About.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${ABOUT_HEADER} About
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_ABOUT_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${ABOUT_HEADER}
|
||||
13
Resources/PO/Contact.robot
Normal file
13
Resources/PO/Contact.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${CONTACT_US} Contact Us
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_CONTACT_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${CONTACT_US}
|
||||
14
Resources/PO/Landing.robot
Normal file
14
Resources/PO/Landing.robot
Normal file
@@ -0,0 +1,14 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../CommonWeb.robot
|
||||
|
||||
*** Variables ***
|
||||
${HOME_PAGE-HEADER} Welcome To Our Studio!
|
||||
|
||||
*** Keywords ***
|
||||
Home Page
|
||||
Go To ${URL}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${HOME_PAGE-HEADER}
|
||||
|
||||
13
Resources/PO/Portofolio.robot
Normal file
13
Resources/PO/Portofolio.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${PORTOFOLIO} Portfolio
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_PORTOFOLIO_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${PORTOFOLIO}
|
||||
13
Resources/PO/Services.robot
Normal file
13
Resources/PO/Services.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${SERVICES} Services
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_SERVICES_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${SERVICES}
|
||||
13
Resources/PO/Team.robot
Normal file
13
Resources/PO/Team.robot
Normal file
@@ -0,0 +1,13 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${AMAZING_TEAM} Our Amazing Team
|
||||
|
||||
*** Keywords ***
|
||||
Click on Team Element
|
||||
Click Element ${TOP_NAV_TEAM_LINK}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${AMAZING_TEAM}
|
||||
26
Resources/PO/TopNav.robot
Normal file
26
Resources/PO/TopNav.robot
Normal file
@@ -0,0 +1,26 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../FrontOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
*** Keywords ***
|
||||
Select "About" Page
|
||||
Click Element ${TOP_NAV_ABOUT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Contact" Page
|
||||
Click Element ${TOP_NAV_CONTACT_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Portofolio" Page
|
||||
Click Element ${TOP_NAV_PORTOFOLIO_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Services" Page
|
||||
Click Element ${TOP_NAV_SERVICES_LINK}
|
||||
Sleep 2
|
||||
|
||||
Select "Team" Page
|
||||
Click Element ${TOP_NAV_TEAM_LINK}
|
||||
Sleep 2
|
||||
Reference in New Issue
Block a user