Exemplo n.º 1
0
        public bool TestCardContents()
        {
            this.WaitTilIsVisible();
            if (CardHeader.IsDisplayed() && CardTitle.IsDisplayed() && CardSubTitle.IsDisplayed() && CardContent.IsDisplayed() && CardActions.IsDisplayed())
            {
                return(true);
            }
            else
            {
                if (!CardHeader.WaitTilIsVisible())
                {
                    BRLogger.LogInfo("Card Header is not available");
                }
                if (!CardTitle.WaitTilIsVisible())
                {
                    BRLogger.LogInfo("Card Title is not available");
                }
                if (!CardSubTitle.WaitTilIsVisible())
                {
                    BRLogger.LogInfo("Card Subtitle is not available");
                }
                if (!CardContent.WaitTilIsVisible())
                {
                    BRLogger.LogInfo("Card Content is not available");
                }
                if (!CardActions.WaitTilIsVisible())
                {
                    BRLogger.LogInfo("Card Action/s is not available");
                }

                return(false);
            }
        }
Exemplo n.º 2
0
 public ContentCard()
 {
     InitializeComponent();
     CardHeader.SetBinding(Label.TextProperty, new Binding(nameof(Header), source: this));
     CardButton.SetBinding(Button.TextProperty, new Binding(nameof(ButtonName), source: this));
     CardButton.SetBinding(Button.CommandProperty, new Binding(nameof(Command), source: this));
     CardButton.SetBinding(IsVisibleProperty, new Binding(nameof(ButtonVisible), source: this));
 }