protected DriverAtataContextBuilder(
     AtataBuildingContext buildingContext,
     string alias,
     string browserName)
     : base(buildingContext, alias)
 {
     _browserName = browserName;
 }
示例#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);
        }
示例#3
0
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext, string alias)
     : base(buildingContext)
 {
     Alias = alias;
 }
示例#4
0
 protected AttributesAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
 protected DriverAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
     BuildingContext.DriverCreator = CreateDriver;
 }
示例#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)
 {
 }
示例#8
0
 internal AtataContextBuilder(AtataBuildingContext buildingContext)
 {
     BuildingContext = buildingContext;
 }
示例#9
0
 internal FirefoxAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
示例#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;
 }
示例#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)
 {
 }
示例#16
0
 public OperaAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
示例#17
0
 internal SafariAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext)
 {
 }
示例#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)
 {
 }
示例#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)
 {
 }
示例#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;
 }
示例#26
0
 public InternetExplorerAtataContextBuilder(AtataBuildingContext buildingContext)
     : base(buildingContext, DriverAliases.InternetExplorer, "Internet Explorer")
 {
 }
示例#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;
 }
示例#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)
 {
 }
示例#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;
 }