protected DriverAtataContextBuilder(
     AtataBuildingContext buildingContext,
     string alias,
     string browserName)
     : base(buildingContext, alias)
 {
     _browserName = browserName;
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext, string alias)
     : base(buildingContext)
 {
     Alias = alias;
 }
Exemplo n.º 4
0
 protected AttributesAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext.DriverCreator = CreateDriver;
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 8
0
 internal AtataContextBuilder(AtataBuildingContext buildingContext)
 {
     BuildingContext = buildingContext;
 }
Exemplo n.º 9
0
 internal FirefoxAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 12
0
 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)
 {
 }
Exemplo n.º 16
0
 public OperaAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemplo n.º 17
0
 internal SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
Exemplo n.º 18
0
 public EdgeAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Edge, "Edge")
 {
 }
Exemplo n.º 19
0
 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)
 {
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 26
0
 public InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.InternetExplorer, "Internet Explorer")
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 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)
 {
 }
Exemplo n.º 31
0
 public RemoteDriverAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.Remote)
 {
 }
Exemplo n.º 32
0
 internal SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }
 internal PhantomJSAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext = buildingContext;
     BuildingContext.DriverCreator = CreateDriver;
 }