// ------------------------------------------------------------------------------
//  <auto-generated>
//      This code was generated by coded UI test builder.
//      Version: 10.0.0.0
//
//      Changes to this file may cause incorrect behavior and will be lost if
//      the code is regenerated.
//  </auto-generated>
// ------------------------------------------------------------------------------

namespace testy
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.Drawing;
    using System.Text.RegularExpressions;
    using System.Windows.Input;
    using Microsoft.VisualStudio.TestTools.UITest.Extension;
    using Microsoft.VisualStudio.TestTools.UITesting;
    using Microsoft.VisualStudio.TestTools.UITesting.HtmlControls;
    using Microsoft.VisualStudio.TestTools.UnitTesting;
    using Keyboard = Microsoft.VisualStudio.TestTools.UITesting.Keyboard;
    using Mouse = Microsoft.VisualStudio.TestTools.UITesting.Mouse;
    using MouseButtons = System.Windows.Forms.MouseButtons;
    
    
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public partial class UIMap
    {
        
        /// <summary>
        /// WyszukiwarkaWpUI - Use 'WyszukiwarkaWpUIParams' to pass parameters into this method.
        /// </summary>
        public void WyszukiwarkaWpUI()
        {
            #region Variable Declarations
            BrowserWindow uIGoogleWindowsInterneWindow = this.UIGoogleWindowsInterneWindow;
            HtmlEdit uISzukaj1Edit = this.UIGoogleWindowsInterneWindow.UIWirtualnaPolskawwwwpDocument.UISzukaj1Edit;
            #endregion

            // Go to web page 'http://www.wp.pl/'
            uIGoogleWindowsInterneWindow.NavigateToUrl(new System.Uri(this.WyszukiwarkaWpUIParams.UIGoogleWindowsInterneWindowUrl));

            // Type 'msdn' in 'szukaj1' text box
            uISzukaj1Edit.Text = this.WyszukiwarkaWpUIParams.UISzukaj1EditText;

            // Type '{Enter}' in 'szukaj1' text box
            Keyboard.SendKeys(uISzukaj1Edit, this.WyszukiwarkaWpUIParams.UISzukaj1EditSendKeys, ModifierKeys.None);
        }
        
        /// <summary>
        /// WyszukiwarkaWPAssert - Use 'WyszukiwarkaWPAssertExpectedValues' to pass parameters into this method.
        /// </summary>
        public void WyszukiwarkaWPAssert()
        {
            #region Variable Declarations
            HtmlSpan uIMsdnmicrosoftcomPane = this.UIGoogleWindowsInterneWindow.UIMsdnSzukajWPPLDocument.UIOSearchRes1Pane.UIMsdnmicrosoftcomPane;
            #endregion

            // Verify that 'msdn.microsoft.com/' pane's property 'InnerText' equals 'msdn.microsoft.com/'
            Assert.AreEqual(this.WyszukiwarkaWPAssertExpectedValues.UIMsdnmicrosoftcomPaneInnerText, uIMsdnmicrosoftcomPane.InnerText);

            // Verify that 'msdn.microsoft.com/' pane's property 'TagName' equals 'SPAN'
            Assert.AreEqual(this.WyszukiwarkaWPAssertExpectedValues.UIMsdnmicrosoftcomPaneTagName, uIMsdnmicrosoftcomPane.TagName);
        }
        
        #region Properties
        public virtual WyszukiwarkaWpUIParams WyszukiwarkaWpUIParams
        {
            get
            {
                if ((this.mWyszukiwarkaWpUIParams == null))
                {
                    this.mWyszukiwarkaWpUIParams = new WyszukiwarkaWpUIParams();
                }
                return this.mWyszukiwarkaWpUIParams;
            }
        }
        
        public virtual WyszukiwarkaWPAssertExpectedValues WyszukiwarkaWPAssertExpectedValues
        {
            get
            {
                if ((this.mWyszukiwarkaWPAssertExpectedValues == null))
                {
                    this.mWyszukiwarkaWPAssertExpectedValues = new WyszukiwarkaWPAssertExpectedValues();
                }
                return this.mWyszukiwarkaWPAssertExpectedValues;
            }
        }
        
        public UIGoogleWindowsInterneWindow UIGoogleWindowsInterneWindow
        {
            get
            {
                if ((this.mUIGoogleWindowsInterneWindow == null))
                {
                    this.mUIGoogleWindowsInterneWindow = new UIGoogleWindowsInterneWindow();
                }
                return this.mUIGoogleWindowsInterneWindow;
            }
        }
        #endregion
        
        #region Fields
        private WyszukiwarkaWpUIParams mWyszukiwarkaWpUIParams;
        
        private WyszukiwarkaWPAssertExpectedValues mWyszukiwarkaWPAssertExpectedValues;
        
        private UIGoogleWindowsInterneWindow mUIGoogleWindowsInterneWindow;
        #endregion
    }
    
    /// <summary>
    /// Parameters to be passed into 'WyszukiwarkaWpUI'
    /// </summary>
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class WyszukiwarkaWpUIParams
    {
        
        #region Fields
        /// <summary>
        /// Go to web page 'http://www.wp.pl/'
        /// </summary>
        public string UIGoogleWindowsInterneWindowUrl = "http://www.wp.pl/";
        
        /// <summary>
        /// Type 'msdn' in 'szukaj1' text box
        /// </summary>
        public string UISzukaj1EditText = "msdn";
        
        /// <summary>
        /// Type '{Enter}' in 'szukaj1' text box
        /// </summary>
        public string UISzukaj1EditSendKeys = "{Enter}";
        #endregion
    }
    
    /// <summary>
    /// Parameters to be passed into 'WyszukiwarkaWPAssert'
    /// </summary>
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class WyszukiwarkaWPAssertExpectedValues
    {
        
        #region Fields
        /// <summary>
        /// Verify that 'msdn.microsoft.com/' pane's property 'InnerText' equals 'msdn.microsoft.com/'
        /// </summary>
        public string UIMsdnmicrosoftcomPaneInnerText = "msdn.microsoft.com/";
        
        /// <summary>
        /// Verify that 'msdn.microsoft.com/' pane's property 'TagName' equals 'SPAN'
        /// </summary>
        public string UIMsdnmicrosoftcomPaneTagName = "SPAN";
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class UIGoogleWindowsInterneWindow : BrowserWindow
    {
        
        public UIGoogleWindowsInterneWindow()
        {
            #region Search Criteria
            this.SearchProperties[UITestControl.PropertyNames.Name] = "Google";
            this.SearchProperties[UITestControl.PropertyNames.ClassName] = "IEFrame";
            this.WindowTitles.Add("Google");
            this.WindowTitles.Add("Wirtualna Polska - www.wp.pl - Ciekawsza strona informacji");
            this.WindowTitles.Add("msdn - Szukaj - WP.PL");
            #endregion
        }
        
        public void LaunchUrl(System.Uri url)
        {
            this.CopyFrom(BrowserWindow.Launch(url));
        }
        
        #region Properties
        public UIWirtualnaPolskawwwwpDocument UIWirtualnaPolskawwwwpDocument
        {
            get
            {
                if ((this.mUIWirtualnaPolskawwwwpDocument == null))
                {
                    this.mUIWirtualnaPolskawwwwpDocument = new UIWirtualnaPolskawwwwpDocument(this);
                }
                return this.mUIWirtualnaPolskawwwwpDocument;
            }
        }
        
        public UIMsdnSzukajWPPLDocument UIMsdnSzukajWPPLDocument
        {
            get
            {
                if ((this.mUIMsdnSzukajWPPLDocument == null))
                {
                    this.mUIMsdnSzukajWPPLDocument = new UIMsdnSzukajWPPLDocument(this);
                }
                return this.mUIMsdnSzukajWPPLDocument;
            }
        }
        #endregion
        
        #region Fields
        private UIWirtualnaPolskawwwwpDocument mUIWirtualnaPolskawwwwpDocument;
        
        private UIMsdnSzukajWPPLDocument mUIMsdnSzukajWPPLDocument;
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class UIWirtualnaPolskawwwwpDocument : HtmlDocument
    {
        
        public UIWirtualnaPolskawwwwpDocument(UITestControl searchLimitContainer) : 
                base(searchLimitContainer)
        {
            #region Search Criteria
            this.SearchProperties[HtmlDocument.PropertyNames.Id] = null;
            this.SearchProperties[HtmlDocument.PropertyNames.RedirectingPage] = "False";
            this.SearchProperties[HtmlDocument.PropertyNames.FrameDocument] = "False";
            this.FilterProperties[HtmlDocument.PropertyNames.Title] = "Wirtualna Polska - www.wp.pl - Ciekawsza strona informacji";
            this.FilterProperties[HtmlDocument.PropertyNames.AbsolutePath] = "/";
            this.FilterProperties[HtmlDocument.PropertyNames.PageUrl] = "http://www.wp.pl/";
            this.WindowTitles.Add("Wirtualna Polska - www.wp.pl - Ciekawsza strona informacji");
            #endregion
        }
        
        #region Properties
        public HtmlEdit UISzukaj1Edit
        {
            get
            {
                if ((this.mUISzukaj1Edit == null))
                {
                    this.mUISzukaj1Edit = new HtmlEdit(this);
                    #region Search Criteria
                    this.mUISzukaj1Edit.SearchProperties[HtmlEdit.PropertyNames.Id] = "szukaj1";
                    this.mUISzukaj1Edit.SearchProperties[HtmlEdit.PropertyNames.Name] = "szukaj1";
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.LabeledBy] = null;
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.Type] = "SINGLELINE";
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.Title] = null;
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.Class] = "sz sz1";
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.ControlDefinition] = "id=szukaj1 class=\"sz sz1\" type=text name";
                    this.mUISzukaj1Edit.FilterProperties[HtmlEdit.PropertyNames.TagInstance] = "13";
                    this.mUISzukaj1Edit.WindowTitles.Add("Wirtualna Polska - www.wp.pl - Ciekawsza strona informacji");
                    #endregion
                }
                return this.mUISzukaj1Edit;
            }
        }
        #endregion
        
        #region Fields
        private HtmlEdit mUISzukaj1Edit;
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class UIMsdnSzukajWPPLDocument : HtmlDocument
    {
        
        public UIMsdnSzukajWPPLDocument(UITestControl searchLimitContainer) : 
                base(searchLimitContainer)
        {
            #region Search Criteria
            this.SearchProperties[HtmlDocument.PropertyNames.Id] = null;
            this.SearchProperties[HtmlDocument.PropertyNames.RedirectingPage] = "False";
            this.SearchProperties[HtmlDocument.PropertyNames.FrameDocument] = "False";
            this.FilterProperties[HtmlDocument.PropertyNames.Title] = "msdn - Szukaj - WP.PL";
            this.FilterProperties[HtmlDocument.PropertyNames.AbsolutePath] = "/szukaj.html";
            this.FilterProperties[HtmlDocument.PropertyNames.PageUrl] = "http://szukaj.wp.pl/szukaj.html?szukaj=msdn&ticaid=1dcef";
            this.WindowTitles.Add("msdn - Szukaj - WP.PL");
            #endregion
        }
        
        #region Properties
        public UIOSearchRes1Pane UIOSearchRes1Pane
        {
            get
            {
                if ((this.mUIOSearchRes1Pane == null))
                {
                    this.mUIOSearchRes1Pane = new UIOSearchRes1Pane(this);
                }
                return this.mUIOSearchRes1Pane;
            }
        }
        #endregion
        
        #region Fields
        private UIOSearchRes1Pane mUIOSearchRes1Pane;
        #endregion
    }
    
    [GeneratedCode("Coded UITest Builder", "10.0.30319.1")]
    public class UIOSearchRes1Pane : HtmlDiv
    {
        
        public UIOSearchRes1Pane(UITestControl searchLimitContainer) : 
                base(searchLimitContainer)
        {
            #region Search Criteria
            this.SearchProperties[HtmlDiv.PropertyNames.Id] = "oSearchRes-1";
            this.SearchProperties[HtmlDiv.PropertyNames.Name] = null;
            this.FilterProperties[HtmlDiv.PropertyNames.InnerText] = "MSDN ? strona główna (Polska) \r\n...subsk";
            this.FilterProperties[HtmlDiv.PropertyNames.Title] = null;
            this.FilterProperties[HtmlDiv.PropertyNames.Class] = "rek";
            this.FilterProperties[HtmlDiv.PropertyNames.ControlDefinition] = "style=\"FONT-WEIGHT: normal\" id=oSearchRe";
            this.FilterProperties[HtmlDiv.PropertyNames.TagInstance] = "20";
            this.WindowTitles.Add("msdn - Szukaj - WP.PL");
            #endregion
        }
        
        #region Properties
        public HtmlSpan UIMsdnmicrosoftcomPane
        {
            get
            {
                if ((this.mUIMsdnmicrosoftcomPane == null))
                {
                    this.mUIMsdnmicrosoftcomPane = new HtmlSpan(this);
                    #region Search Criteria
                    this.mUIMsdnmicrosoftcomPane.SearchProperties[HtmlDiv.PropertyNames.Id] = null;
                    this.mUIMsdnmicrosoftcomPane.SearchProperties[HtmlDiv.PropertyNames.Name] = null;
                    this.mUIMsdnmicrosoftcomPane.FilterProperties[HtmlDiv.PropertyNames.InnerText] = "msdn.microsoft.com/";
                    this.mUIMsdnmicrosoftcomPane.FilterProperties[HtmlDiv.PropertyNames.Title] = null;
                    this.mUIMsdnmicrosoftcomPane.FilterProperties[HtmlDiv.PropertyNames.Class] = "fLi";
                    this.mUIMsdnmicrosoftcomPane.FilterProperties[HtmlDiv.PropertyNames.ControlDefinition] = "class=fLi";
                    this.mUIMsdnmicrosoftcomPane.FilterProperties[HtmlDiv.PropertyNames.TagInstance] = "1";
                    this.mUIMsdnmicrosoftcomPane.WindowTitles.Add("msdn - Szukaj - WP.PL");
                    #endregion
                }
                return this.mUIMsdnmicrosoftcomPane;
            }
        }
        #endregion
        
        #region Fields
        private HtmlSpan mUIMsdnmicrosoftcomPane;
        #endregion
    }
}
