*** Settings ***
Resource                    ../PO/Home.robot
Resource                    ../PO/AddCustomers.robot
Resource                    ../PO/Customers.robot
Resource                    ../PO/LoggerOut.robot
Resource                    ../PO/SignIn.robot
Resource                    ../PO/TopNav.robot

*** Variables ***


*** Keywords ***
Go to "Home" Page
    Home.Navigate To
    Home.Verify Page Loaded

Login With Valid Credentials
    [Arguments]                                     ${Email}  ${Password}
    TopNav.Click Sign In Link
    SignIn.Verify Page Loaded
    SignIn.Login With Valid Credentials             ${Email}  ${Password}
    Customers.Verify Page Loaded

Login With remember checkbox
    [Arguments]                                     ${Email}  ${Password}
    TopNav.Click Sign In Link
    SignIn.Verify Page Loaded
    SignIn.Login With remember checkbox              ${Email}  ${Password}
    Customers.Verify Page Loaded

Login With Invalid Credentials
    [Arguments]                                     ${Email}
    TopNav.Click Sign In Link
    SignIn.Verify Page Loaded Credentials
    SignIn.Login With Invalid Credentials           ${Email}
    Customers.Verifiy Not Be Loaded

Add New Customer
    Customers.Click Add Customer Link
    AddCustomers.Verify Page Loaded
    AddCustomers.Add New Customer
    Customers.Verify Customer Added Successfully

Sign Out
    TopNav.Click Sign Out Link
    LoggerOut.Verify Page Loaded