Initial commit
This commit is contained in:
11
Resources/BackOffice/BackOfficeApp.robot
Normal file
11
Resources/BackOffice/BackOfficeApp.robot
Normal file
@@ -0,0 +1,11 @@
|
||||
*** Settings ***
|
||||
Resource ./PO/BackOffice.Landing.robot
|
||||
Resource ./PO/BackOffice.TopNav.robot
|
||||
|
||||
*** Variables ***
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Go to "Home" page
|
||||
BackOffice.Landing.Home Page
|
||||
BackOffice.Landing.Verify Page
|
||||
16
Resources/BackOffice/PO/BackOffice.Landing.robot
Normal file
16
Resources/BackOffice/PO/BackOffice.Landing.robot
Normal file
@@ -0,0 +1,16 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../BackOfficeApp.robot
|
||||
|
||||
*** Variables ***
|
||||
${BACK_OFFICE_HOME_PAGE-HEADER} Dashboard
|
||||
${BACK_OFFICE_URL} https://automationplayground.com/back-office/
|
||||
|
||||
|
||||
*** Keywords ***
|
||||
Home Page
|
||||
Go To ${BACK_OFFICE_URL}
|
||||
|
||||
Verify Page
|
||||
Wait Until Page Contains ${BACK_OFFICE_HOME_PAGE-HEADER}
|
||||
|
||||
31
Resources/BackOffice/PO/BackOffice.TopNav.robot
Normal file
31
Resources/BackOffice/PO/BackOffice.TopNav.robot
Normal file
@@ -0,0 +1,31 @@
|
||||
*** Settings ***
|
||||
Library SeleniumLibrary
|
||||
Resource ../BackOfficeApp.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 ***
|
||||
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