package ru.stqa.pft.mantis.appmanager;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by Alexander on 18.07.2016.
 */
public class WebSessionHelper extends HelperBase{

    public WebSessionHelper(ApplicationManager app) {
        super(app);
    }

    public void adminLogin() {
        wd.get(app.getProperty("web.baseUrl"));
        type(By.name("username"), app.getProperty("web.adminLogin"));
        type(By.name("password"), app.getProperty("web.adminPassword"));
        click(By.cssSelector("input[type='submit']"));
    }
}
