Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using NUnit.Framework;
- using OpenQA.Selenium;
- using OpenQA.Selenium.Firefox;
- using OpenQA.Selenium.Support.UI;
- namespace WebAddressbookTests
- {
- public class ApplicationManager
- {
- protected IWebDriver driver;
- protected string baseURL;
- protected LoginHelper loginHelper;
- protected NavigationHelper navigator;
- protected GroupHelper groupHelper;
- public ApplicationManager()
- {
- driver = new FirefoxDriver();
- baseURL = "http://localhost";
- loginHelper = new LoginHelper(this);
- navigator = new NavigationHelper(this, baseURL);
- groupHelper = new GroupHelper(this);
- }
- public IWebDriver Driver
- {
- get
- {
- return driver;
- }
- }
- public void Stop()
- {
- try
- {
- driver.Quit();
- }
- catch (Exception)
- {
- // Ignore errors if unable to close the browser
- }
- }
- public LoginHelper Auth
- {
- get
- {
- return loginHelper;
- }
- }
- public NavigationHelper Navigator
- {
- get
- {
- return navigator;
- }
- }
- public GroupHelper Groups
- {
- get
- {
- return groupHelper;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment