Last active
March 11, 2019 10:59
-
-
Save YevgeniyShunevych/22dde6cae6bb25441d42aa051323c728 to your computer and use it in GitHub Desktop.
Atata component for AngularJS Material Dialog
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]"; | |
protected MDDialog(params string[] windowTitleValues) | |
: base(windowTitleValues) | |
{ | |
} | |
[FindByXPath(TitleXPath)] | |
public Text<TOwner> DialogTitle { get; private set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment