Initial commit

This commit is contained in:
2025-11-06 12:06:50 +01:00
commit 4f76dc944e
48 changed files with 11671 additions and 0 deletions

15
Resources/CommonWeb.robot Normal file
View 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

View 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
View 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}

View 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}

View 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}

View 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}

View 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
View 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
View 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