/// <summary>
 /// Initializes a new instance of the <see cref="jcBrowser"/> class.
 /// </summary>
 /// <param name="driverType">Type of the driver. Firefox or Chrome. </param>
 /// <param name="site">The site handle or name.</param>
 /// <param name="urlPrefix">The URL prefix. The base url to be prefixed onto any address.</param>
 public jcBrowser(string driverType, string site, string urlPrefix)
 {
     _site = site;
     _addressAtlas = new jcAddressAtlas(urlPrefix, site);
     setrDriver(driverType);
     _pageFactory = new jcPageFactory(_driver, _addressAtlas, _site);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcBrowser"/> class.
 /// </summary>
 /// <param name="driverType">Type of the driver. Firefox or Chrome. </param>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="urlPrefix">The URL prefix. The base url to be prefixed onto any address.</param>
 public jcBrowser(string driverType, jcPageObjectRepository repository, string urlPrefix)
 {
     _repository = repository;
     _addressAtlas = new jcAddressAtlas(urlPrefix, _repository);
     setrDriver(driverType);
     _pageFactory = new jcPageFactory(_driver, _addressAtlas, _repository);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcBrowser"/> class.
 /// </summary>
 /// <param name="driverType">Type of the driver. Firefox or Chrome. </param>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="urlPrefix">The URL prefix. The base url to be prefixed onto any address.</param>
 public jcBrowser(string driverType, jcPageObjectRepository repository, string urlPrefix)
 {
     _repository   = repository;
     _addressAtlas = new jcAddressAtlas(urlPrefix, _repository);
     setrDriver(driverType);
     _pageFactory = new jcPageFactory(_driver, _addressAtlas, _repository);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcPageFactory"/> class.
 /// Factory for creating new page objects.
 /// </summary>
 /// <param name="driver">The driver.</param>
 /// <param name="atlas">The atlas.</param>
 /// <param name="site">The site.</param>
 public jcPageFactory(IWebDriver driver, jcAddressAtlas atlas, string site)
 {
     _site = site;
     _driver = driver;
     _atlas = atlas;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcPageFactory"/> class.
 /// Factory for creating new page objects.
 /// </summary>
 /// <param name="driver">The driver.</param>
 /// <param name="atlas">The atlas.</param>
 /// <param name="repository">The page object repository for this site.</param>
 public jcPageFactory(IWebDriver driver, jcAddressAtlas atlas, jcPageObjectRepository repository)
 {
     _repository = repository;
     _driver = driver;
     _atlas = atlas;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="jcPageFactory"/> class.
 /// Factory for creating new page objects.
 /// </summary>
 /// <param name="driver">The driver.</param>
 /// <param name="atlas">The atlas.</param>
 /// <param name="repository">The page object repository for this site.</param>
 public jcPageFactory(IWebDriver driver, jcAddressAtlas atlas, jcPageObjectRepository repository)
 {
     _repository = repository;
     _driver     = driver;
     _atlas      = atlas;
 }