protected DriverAtataContextBuilder(
     AtataBuildingContext buildingContext,
     string alias,
     string browserName)
     : base(buildingContext, alias)
 {
     _browserName = browserName;
 }
Exemple #2
0
        /// <summary>
        /// Creates a copy of the current instance.
        /// </summary>
        /// <returns>The copied <see cref="AtataBuildingContext"/> instance.</returns>
        public AtataBuildingContext Clone()
        {
            AtataBuildingContext copy = (AtataBuildingContext)MemberwiseClone();

            copy.DriverFactories     = DriverFactories.ToList();
            copy.LogConsumers        = LogConsumers.ToList();
            copy.ScreenshotConsumers = ScreenshotConsumers.ToList();
            copy.CleanUpActions      = CleanUpActions.ToList();

            return(copy);
        }
Exemple #3
0
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext, string alias)
     : base(buildingContext)
 {
     Alias = alias;
 }
Exemple #4
0
 protected AttributesAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext.DriverCreator = CreateDriver;
 }
Exemple #6
0
 /// <summary>
 /// Clears the <see cref="BuildingContext"/>.
 /// </summary>
 /// <returns>The <see cref="AtataContextBuilder"/> instance.</returns>
 public AtataContextBuilder Clear()
 {
     BuildingContext = new AtataBuildingContext();
     return(this);
 }
 internal PhantomJSAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemple #8
0
 internal AtataContextBuilder(AtataBuildingContext buildingContext)
 {
     BuildingContext = buildingContext;
 }
Exemple #9
0
 internal FirefoxAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemple #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventSubscriptionsAtataContextBuilder"/> class.
 /// </summary>
 /// <param name="buildingContext">The building context.</param>
 public EventSubscriptionsAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 internal ChromeAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }
 public SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Safari, "Safari")
 {
 }
 public CustomDriverAtataContextBuilder(AtataBuildingContext buildingContext, Func <RemoteWebDriver> driverFactory)
     : base(buildingContext)
 {
     _driverFactory = driverFactory.CheckNotNull(nameof(driverFactory));
 }
 internal InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }
 public InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 public OperaAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemple #17
0
 internal SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemple #18
0
 public EdgeAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Edge, "Edge")
 {
 }
 public PhantomJSAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 internal InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }
 public FirefoxAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Firefox)
 {
 }
Exemple #22
0
 public AtataContextBuilder(AtataBuildingContext buildingContext)
 {
     BuildingContext = buildingContext.CheckNotNull(nameof(buildingContext));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GlobalAttributesAtataContextBuilder"/> class.
 /// </summary>
 /// <param name="buildingContext">The building context.</param>
 public GlobalAttributesAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemple #24
0
 internal EdgeAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AssemblyAttributesAtataContextBuilder"/> class.
 /// </summary>
 /// <param name="assembly">The assembly.</param>
 /// <param name="buildingContext">The building context.</param>
 public AssemblyAttributesAtataContextBuilder(Assembly assembly, AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     _assembly = assembly;
 }
Exemple #26
0
 public InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.InternetExplorer, "Internet Explorer")
 {
 }
Exemple #27
0
 public AtataContextBuilder(TContext context, AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     Context = context;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PropertyAttributesAtataContextBuilder{TNextBuilder}"/> class.
 /// </summary>
 /// <param name="type">The type.</param>
 /// <param name="propertyName">Name of the property.</param>
 /// <param name="parentBuilder">The parent builder.</param>
 /// <param name="buildingContext">The building context.</param>
 public PropertyAttributesAtataContextBuilder(Type type, string propertyName, TNextBuilder parentBuilder, AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     _typeProperty  = new TypePropertyNamePair(type, propertyName);
     _parentBuilder = parentBuilder;
 }
Exemple #29
0
 public ChromeAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Chrome, "Chrome")
 {
 }
 [Obsolete("Use other constructor with 3 arguments.")] // Obsolete since v1.10.0.
 protected DriverAtataContextBuilder(
     AtataBuildingContext buildingContext,
     string alias)
     : this(buildingContext, alias, null)
 {
 }
Exemple #31
0
 public RemoteDriverAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Remote)
 {
 }
 internal SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }
 internal PhantomJSAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }