Пример #1
0
 public Div GetProfilePropertyDiv(string propertyName)
 {
     if (PopUpFrame != null)
     {
         return(PopUpFrame.Div(Find.ById(s => s.EndsWith("ManageUsers_Profile_ProfileProperties_" + propertyName))));
     }
     return(IEInstance.Div(Find.ById(s => s.EndsWith("ManageUsers_Profile_ProfileProperties_" + propertyName))));
 }
Пример #2
0
 public Div GetPropertyEditorRow(string propertyName)
 {
     if (PopUpFrame != null)
     {
         return(PopUpFrame.Div(Find.ById(s => s.EndsWith("EditProfileDefinition_Wizard_Properties_" + propertyName))));
     }
     return(IEInstance.Div(Find.ById(s => s.EndsWith("EditProfileDefinition_Wizard_Properties_" + propertyName))));
 }
Пример #3
0
 public TextField GetProfilePropertyTextField(string propertyName)
 {
     if (PopUpFrame != null)
     {
         return(PopUpFrame.TextField(Find.ByName(s => s.EndsWith("$ManageUsers$Profile$ProfileProperties$" + propertyName + "$" + propertyName))));
     }
     return(IEInstance.TextField(Find.ByName(s => s.EndsWith("$ManageUsers$Profile$ProfileProperties$" + propertyName + "$" + propertyName))));
 }
Пример #4
0
        public Frame GetDialog(string dialogName)
        {
            if (PopUpFrame != null)
            {
                return(PopUpFrame.Frame(Find.BySrc(s => s.Contains("DialogName=" + dialogName))));
            }

            return(IEInstance.Frame(Find.BySrc(s => s.Contains("DialogName=" + dialogName))));
        }
Пример #5
0
        public TElement FindElement <TElement>(Constraint findBy) where TElement : Element
        {
            if (PopUpFrame != null)
            {
                return(PopUpFrame.ElementOfType <TElement>(findBy));
            }

            return(IEInstance.ElementOfType <TElement>(findBy));
        }
        private void Registration_Click(object sender, MouseButtonEventArgs e)
        {
            PopUpFrame popup = new PopUpFrame();

            popup.Show();
            var window = Window.GetWindow(this);

            window.Close();
        }
Пример #7
0
        private void ChatButton_Clicked(object sender, EventArgs e)
        {
            var lbl = new Label {
                Text = "ChatUi"
            };

            lbl.HorizontalOptions = lbl.VerticalOptions = LayoutOptions.Center;
            var popUp = new PopUpFrame(lbl);

            PopupNavigation.Instance.PushAsync(popUp);
        }
Пример #8
0
        private void ExpandButton_Clicked(object sender, EventArgs e)
        {
            var tmpWebView = new WebView();
            var htmlSource = new HtmlWebViewSource();

            htmlSource.Html = htmlString;


            tmpWebView.Source = htmlSource;
            var popUp = new PopUpFrame(tmpWebView);


            PopupNavigation.Instance.PushAsync(popUp);
        }