import myModule as My
from selenium import webdriver
from selenium.webdriver.common.by import By

# Variable PATH stores the directory of the chrome driver
driver = webdriver.Chrome(My.PATH)


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    # Locating the button on the top navigation bar
    button_login = My.search_clickable_webelement(
        driver, By.XPATH, "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()

    # Validating that the pop up window is present
    window = My.search_presence_webelement(driver, By.XPATH, "//*[@id='ypModal']/div/div")
    assert window


def test_login():
    """
    >> This function executes the steps of the test case
    """
    My.search_merchant_page(driver, My.Testing_Env_EN)
    validate_login()
    print('----------')
    My.search_merchant_page(driver, My.Testing_Env_FR)
    validate_login()
    driver.quit()

f28e83e8eab846a85cd2c31b0f83dee47beddd83
<mask token>


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    button_login = My.search_clickable_webelement(driver, By.XPATH,
        "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()
    window = My.search_presence_webelement(driver, By.XPATH,
        "//*[@id='ypModal']/div/div")
    assert window


<mask token>

<mask token>


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    button_login = My.search_clickable_webelement(driver, By.XPATH,
        "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()
    window = My.search_presence_webelement(driver, By.XPATH,
        "//*[@id='ypModal']/div/div")
    assert window


def test_login():
    """
    >> This function executes the steps of the test case
    """
    My.search_merchant_page(driver, My.Testing_Env_EN)
    validate_login()
    print('----------')
    My.search_merchant_page(driver, My.Testing_Env_FR)
    validate_login()
    driver.quit()

<mask token>
driver = webdriver.Chrome(My.PATH)


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    button_login = My.search_clickable_webelement(driver, By.XPATH,
        "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()
    window = My.search_presence_webelement(driver, By.XPATH,
        "//*[@id='ypModal']/div/div")
    assert window


def test_login():
    """
    >> This function executes the steps of the test case
    """
    My.search_merchant_page(driver, My.Testing_Env_EN)
    validate_login()
    print('----------')
    My.search_merchant_page(driver, My.Testing_Env_FR)
    validate_login()
    driver.quit()

import myModule as My
from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome(My.PATH)


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    button_login = My.search_clickable_webelement(driver, By.XPATH,
        "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()
    window = My.search_presence_webelement(driver, By.XPATH,
        "//*[@id='ypModal']/div/div")
    assert window


def test_login():
    """
    >> This function executes the steps of the test case
    """
    My.search_merchant_page(driver, My.Testing_Env_EN)
    validate_login()
    print('----------')
    My.search_merchant_page(driver, My.Testing_Env_FR)
    validate_login()
    driver.quit()

import myModule as My
from selenium import webdriver
from selenium.webdriver.common.by import By

# Variable PATH stores the directory of the chrome driver
driver = webdriver.Chrome(My.PATH)


def validate_login():
    """
    >> This function verifies if the login pop-up window opens
    """
    # Locating the button on the top navigation bar
    button_login = My.search_clickable_webelement(
        driver, By.XPATH, "//*[@id='ypgBody']/div[1]/header/div/div/div/div/div[3]/ul/li[5]")
    assert button_login
    button_login.click()

    # Validating that the pop up window is present
    window = My.search_presence_webelement(driver, By.XPATH, "//*[@id='ypModal']/div/div")
    assert window


def test_login():
    """
    >> This function executes the steps of the test case
    """
    My.search_merchant_page(driver, My.Testing_Env_EN)
    validate_login()
    print('----------')
    My.search_merchant_page(driver, My.Testing_Env_FR)
    validate_login()
    driver.quit()
