This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
namespace Atata | |
{ | |
public class WaitAndSwitchToNextWindowAttribute : TriggerAttribute | |
{ | |
public WaitAndSwitchToNextWindowAttribute(TriggerEvents on = TriggerEvents.AfterClick, TriggerPriority priority = TriggerPriority.Medium) | |
: base(on, priority) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace Atata | |
{ | |
public class FindInShadowDomAttribute : FindAttribute | |
{ | |
public FindInShadowDomAttribute(params string[] shadowContainerXPaths) | |
{ | |
ShadowContainerXPaths = shadowContainerXPaths; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Atata | |
{ | |
public static class EditableFieldExtensions | |
{ | |
public static TOwner SetAndAssert<T, TOwner>(this EditableField<T, TOwner> editableField, T value) | |
where TOwner : PageObject<TOwner> | |
{ | |
editableField.Set(value); | |
return editableField.Should.Equal(value); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Atata.AngularJS.Material | |
{ | |
[ControlDefinition("md-option", ComponentTypeName = "option")] | |
public class MDOption<T, TOwner> : Field<T, TOwner> | |
where TOwner : PageObject<TOwner> | |
{ | |
[FindByClass("md-text")] | |
public Text<TOwner> Text { get; private set; } | |
protected override T GetValue() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Atata | |
{ | |
[ControlDefinition("input[@type='password']", ComponentTypeName = "password input")] | |
[ValueGetFormat("{0}")] | |
[ValueSetFormat("{0}")] | |
public class SecurePasswordInput<TOwner> : Input<string, TOwner> | |
where TOwner : PageObject<TOwner> | |
{ | |
protected override string ConvertValueToString(string value) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Atata | |
{ | |
/// <summary> | |
/// Represents the "Select 2" dropdown control (class: "select2-container"). | |
/// </summary> | |
/// <typeparam name="T">The type of the control's data.</typeparam> | |
/// <typeparam name="TOwner">The type of the owner.</typeparam> | |
[ControlDefinition(ContainingClass = "select2-container", ComponentTypeName = "select")] | |
public class Select2<T, TOwner> : EditableField<T, TOwner> | |
where TOwner : PageObject<TOwner> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Method | Size | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio | | |
|--------------------- |------- |---------------:|--------------:|--------------:|---------------:|------:|--------:|-------:|----------:|------------:| | |
| Array | 10 | 2.487 ns | 0.0166 ns | 0.0155 ns | 2.487 ns | 1.00 | 0.00 | - | - | NA | | |
| List | 10 | 5.817 ns | 0.1264 ns | 0.1183 ns | 5.850 ns | 2.34 | 0.05 | - | - | NA | | |
| ArrayAsIReadOnlyList | 10 | 18.017 ns | 0.3707 ns | 0.3467 ns | 17.979 ns | 7.25 | 0.16 | 0.0051 | 32 B | NA | | |
| ListAsIReadOnlyList | 10 | 26.952 ns | 0.5576 ns | 0.6848 ns | 27.178 ns | 10.80 | 0.35 | 0.0063 | 40 B | NA | | |
| ArrayAsIEnumerable | 10 | 17.990 ns | 0.3809 ns | 0.7060 ns | 18.187 ns | 7.32 |
OlderNewer