class Loginpage():

    def __init__(self,driver):
        self.driver = driver

        self.username_textbox_id = "credential_email"
        self.password_textbox_id = "credential_password"
        self.login_button_class_name = "actions"


    def enter_username(self,username):
            self.driver.find_element_by_id(self.username_textbox_id).clear()
            self.driver.find_element_by_id(self.username_textbox_id).send_keys(username)

    def enter_password(self,password):
        self.driver.find_element_by_id(self.password_textbox_id).clear()
        self.driver.find_element_by_id(self.password_textbox_id).send_keys(password)

    def click_login(self):
        self.driver.find_element_by_class_name(self.login_button_class_name).click()


