/// <summary>
 /// Initializes a new instance of the <see cref="jcPage"/> class.
 /// </summary>
 /// <param name="driver">The selenium driver.</param>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="pageHandle">The page handle.</param>
 public jcPage(IWebDriver driver, jcPageObjectRepository repository, string pageHandle)
 {
     _driver      = driver;
     _repository  = repository;
     _pageHandle  = pageHandle;
     _objectAtlas = new jcPageObjectAtlas(_repository, _pageHandle);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcPageObjectAtlas"/> class.
 /// Provides a way to access the object lookup info.
 /// </summary>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="pageHandle">The page handle.</param>
 public jcPageObjectAtlas(jcPageObjectRepository repository, string pageHandle)
 {
     _repository      = repository;
     _pageHandle      = pageHandle;
     _pageObjectIndex = new Dictionary <string, List <jcPageObjectLookupPair> >();
     loadIndex(_pageHandle);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcPage"/> class.
 /// </summary>
 /// <param name="driver">The selenium driver.</param>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="pageHandle">The page handle.</param>
 public jcPage(IWebDriver driver, jcPageObjectRepository repository, string pageHandle)
 {
     _driver = driver;
     _repository = repository;
     _pageHandle = pageHandle;
     _objectAtlas = new jcPageObjectAtlas(_repository, _pageHandle);
 }
 /// <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="jcPageObjectAtlas"/> class.
 /// Provides a way to access the object lookup info.
 /// </summary>
 /// <param name="repository">The page object repository for this site.</param>
 /// <param name="pageHandle">The page handle.</param>
 public jcPageObjectAtlas(jcPageObjectRepository repository, string pageHandle)
 {
     _repository = repository;
     _pageHandle = pageHandle;
     _pageObjectIndex = new Dictionary<string, List<jcPageObjectLookupPair>>();
     loadIndex(_pageHandle);
 }
 /// <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);
 }
Example #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="jcAddressAtlas"/> class.
 /// </summary>
 /// <param name="prefix">The base url of the site being tests. </param>
 /// <param name="repository">The page object repository for this site.</param>
 public jcAddressAtlas(string prefix, jcPageObjectRepository repository)
 {
     _repository = repository;
     _prefix     = prefix.TrimEnd('/');
     loadIndex();
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="jcBrowserFactory"/> class.
 /// </summary>
 /// <param name="site">The site.
 /// If storing page object data in an Excel file, this it should be the
 /// fully qualified path to the .xlsx file.</param>
 /// <param name="prefix">The prefix.
 /// This is the address prefix for urls.</param>
 public jcBrowserFactory(string site, string prefix)
 {
     _site             = site;
     _prefix           = prefix;
     _objectRepository = new jcPageObjectRepository(_site);
 }
 /// <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;
 }
Example #10
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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcBrowserFactory"/> class.
 /// </summary>
 /// <param name="site">The site.
 /// If storing page object data in an Excel file, this it should be the
 /// fully qualified path to the .xlsx file.</param>
 /// <param name="prefix">The prefix. 
 /// This is the address prefix for urls.</param>
 public jcBrowserFactory(string site, string prefix)
 {
     _site = site;
     _prefix = prefix;
     _objectRepository = new jcPageObjectRepository(_site);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="jcAddressAtlas"/> class.
 /// </summary>
 /// <param name="prefix">The base url of the site being tests. </param>
 /// <param name="repository">The page object repository for this site.</param>
 public jcAddressAtlas(string prefix, jcPageObjectRepository repository)
 {
     _repository = repository;
     _prefix = prefix.TrimEnd('/');
     loadIndex();
 }