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; | |
namespace Atata | |
{ | |
public class LabelList<TOwner> : ControlList<Label<TOwner>, TOwner> | |
where TOwner : PageObject<TOwner> | |
{ | |
public Label<TOwner> this[Func<TOwner, Control<TOwner>> controlSelector] | |
{ | |
get { return For(controlSelector); } |
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; | |
namespace Atata | |
{ | |
public class LabelContainerList<TOwner> : ControlList<Text<TOwner>, TOwner> | |
where TOwner : PageObject<TOwner> | |
{ | |
public Text<TOwner> this[Func<TOwner, Control<TOwner>> controlSelector] | |
{ | |
get { return For(controlSelector); } |
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; | |
namespace Atata | |
{ | |
public static class PageObjectExtensions | |
{ | |
public static TOwner RefreshPageAndWaitUntil<TOwner>(this TOwner pageObject, Func<TOwner, bool> predicate, double timeout, double retryInterval) | |
where TOwner : PageObject<TOwner> | |
{ | |
TOwner activePageObject = pageObject; |
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 Atata; | |
using NUnit.Framework; | |
namespace SampleApp.UITests | |
{ | |
public class SampleTests : UITestFixture | |
{ | |
[Test] | |
public void GoToWorkspacePageById() | |
{ |
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 Atata; | |
using NUnit.Framework; | |
namespace SampleApp.UITests | |
{ | |
public class SampleTests : UITestFixture | |
{ | |
[Test] | |
public void GoToWorkspacePageById() | |
{ |
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 | |
{ | |
[PageObjectDefinition("md-dialog", ComponentTypeName = "dialog", IgnoreNameEndings = "PopupWindow,Window,Popup,Modal,Dialog,DialogWindow")] | |
[WindowTitleElementDefinition(TitleXPath)] | |
[WaitFor(Until.MissingOrHidden, TriggerEvents.DeInit)] | |
public class MDDialog<TOwner> : PopupWindow<TOwner> | |
where TOwner : MDDialog<TOwner> | |
{ | |
private const string TitleXPath = "*[contains(concat(' ', normalize-space(@class), ' '), ' md-title ') or self::h2]"; |
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 class FindByPrecedingSpanAttribute : FindByXPathAttribute | |
{ | |
public FindByPrecedingSpanAttribute(params string[] terms) | |
: this(TermMatch.Equals, terms) | |
{ | |
} | |
public FindByPrecedingSpanAttribute(TermMatch match, params string[] terms) |
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 Atata; | |
namespace SomeApp.UITests | |
{ | |
using _ = SamplePage; | |
public class SamplePage : Page<_> | |
{ | |
public Control<_> GetSomeSpecificControl(string text) | |
{ |
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 Atata; | |
namespace SomeApp.UITests | |
{ | |
using _ = SamplePage; | |
public class SamplePage : Page<_> | |
{ | |
public Control<_> GetSomeControl(string attributeValue) | |
{ |
OlderNewer