/// <summary>
        ///
        /// </summary>
        /// <param name="window"></param>
        /// <param name="controlName"></param>
        /// <returns></returns>
        public static WinCustom GetCustomControlByName(this WinWindow window, string controlName)
        {
            WinCustom custom = new WinCustom(window);

            custom.SearchProperties[WinCustom.PropertyNames.ControlName] = controlName;
            return(custom);
        }
예제 #2
0
        private static WinCustom GetWinCustom(string uiTitle, string uiType)
        {
            var htmlcontrolWin = new WinCustom(Window.Locate(uiTitle, uiType));
            var htmlControlWin = htmlcontrolWin;

            htmlControlWin.TechnologyName = TechnologyNameWin;
            return(htmlControlWin);
        }
예제 #3
0
        /// <summary>
        /// MoveModule - Use 'MoveModuleParams' to pass parameters into this method.
        /// </summary>
        public void MoveModule()
        {
            #region Variable Declarations
            WinEdit   uICreateEdit            = this.UIGamersCreatingGamesfWindow.UICreateHyperlink.UICreateEdit;
            WinEdit   uIUnitsEdit             = this.UIGamersCreatingGamesfWindow.UIUnitsHyperlink.UIUnitsEdit;
            WinButton uIBasicButton           = this.UIGamersCreatingGamesfWindow.UIUnitsBasicListItem.UIBasicButton;
            WinCustom uIItemCustom            = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UIItemCustom;
            WinEdit   uIBasic232Edit          = this.UIGamersCreatingGamesfWindow.UIBasic232Button.UIBasic232Edit;
            WinEdit   uIUnitEdit              = this.UIGamersCreatingGamesfWindow.UIUnitHyperlink.UIUnitEdit;
            WinButton uIAddModuleButton       = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UIAddModuleButton;
            WinEdit   uIEventsKeyBindingsEdit = this.UIGamersCreatingGamesfWindow.UIEventsKeyBindingsHyperlink.UIEventsKeyBindingsEdit;
            WinButton uIAddBindingButton      = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UIAddBindingButton;
            WinButton uINoneButton            = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UINoneButton;
            WinButton uINoneButton1           = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UINoneButton1;
            WinButton uIPressanykeyButton     = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UIPressanykeyButton;
            WinCustom uIItemCustom1           = this.UIGamersCreatingGamesfWindow.UIGamersCreatingGamesfDocument.UIItemCustom1;
            #endregion

            // Click 'Create' text box
            Mouse.Click(uICreateEdit, new Point(12, 14));

            // Click 'Units' text box
            Mouse.Click(uIUnitsEdit, new Point(24, 15));

            // Click 'Basic' button
            Mouse.Click(uIBasicButton, new Point(98, 25));

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(389, 167));

            // Click 'Basic232' text box
            Mouse.Click(uIBasic232Edit, new Point(38, 12));

            // Click 'Unit' text box
            Mouse.Click(uIUnitEdit, new Point(16, 16));

            // Click 'Add Module' button
            Mouse.Click(uIAddModuleButton, new Point(29, 24));

            // Click 'Events / Key Bindings' text box
            Mouse.Click(uIEventsKeyBindingsEdit, new Point(64, 15));

            // Click 'Add Binding' button
            Mouse.Click(uIAddBindingButton, new Point(32, 20));

            // Click 'None' button
            Mouse.Click(uINoneButton, new Point(31, 31));

            // Click 'None' button
            Mouse.Click(uINoneButton1, new Point(43, 28));

            // Type 'd' in 'Press any key' button
            Keyboard.SendKeys(uIPressanykeyButton, this.MoveModuleParams.UIPressanykeyButtonSendKeys, ModifierKeys.None);

            // Click custom control numbered 2 in 'Gamers Creating Games for Gamers' document
            Mouse.Click(uIItemCustom1, new Point(16, 1));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="window"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public static WinCustom GetWinCustomByName(this WinWindow window, string name)
        {
            var txtProps = new WinCustom(window)
            {
                TechnologyName = "MSAA"
            };

            txtProps.SearchProperties[WinCustom.PropertyNames.Name] = name;
            return(txtProps);
        }
예제 #5
0
        /// <summary>
        /// A technician logs in, sends a proposal for a job and logs out
        /// </summary>
        public void TechLoginTakeJobLogout()
        {
            #region Variable Declarations
            WinEdit     uILoginEdit = this.UIFindAFixMozillaFirefWindow.UILoginHyperlink.UILoginEdit;
            WinEdit     uIEmailEdit = this.UIFindAFixMozillaFirefWindow.UILoginFindAFixDocument.UIEmailEdit;
            WinListItem uINewtechtechcomListItem = this.UIItemWindow.UIItemList.UINewtechtechcomListItem;
            WinButton   uILoginButton            = this.UIFindAFixMozillaFirefWindow.UILoginFindAFixDocument.UILoginButton;
            WinEdit     uIAvailableJobsEdit      = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsHyperlink.UIAvailableJobsEdit;
            WinEdit     uITakeEdit             = this.UIFindAFixMozillaFirefWindow.UITakeHyperlink.UITakeEdit;
            WinEdit     uIPriceEstEdit         = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsFindAFiDocument.UIPriceEstEdit;
            WinCustom   uIItemCustom           = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsFindAFiDocument.UIItemCustom;
            WinEdit     uIMessageEdit          = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsFindAFiDocument.UIMessageEdit;
            WinEdit     uIAvailabilityDateEdit = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsFindAFiDocument.UIAvailabilityDateEdit;
            WinButton   uISendButton           = this.UIFindAFixMozillaFirefWindow.UIAvailableJobsFindAFiDocument.UISendButton;
            WinEdit     uILogoffEdit           = this.UIFindAFixMozillaFirefWindow.UILogoffHyperlink.UILogoffEdit;
            #endregion

            // Click 'Log in' text box
            Mouse.Click(uILoginEdit, new Point(23, 14));

            // Type 'newte' in 'Email' text box
            uIEmailEdit.Text = this.TechLoginTakeJobLogoutParams.UIEmailEditText;

            // Click '*****@*****.**' list item
            Mouse.Click(uINewtechtechcomListItem, new Point(100, 3));

            // Click 'Log in' button
            Mouse.Click(uILoginButton, new Point(73, 29));

            // Click 'Available Jobs' text box
            Mouse.Click(uIAvailableJobsEdit, new Point(73, 23));

            // Click 'Take' text box
            Mouse.Click(uITakeEdit, new Point(12, 0));

            // Type '99.99' in 'PriceEst' text box
            uIPriceEstEdit.Text = this.TechLoginTakeJobLogoutParams.UIPriceEstEditText;

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(533, 13));

            // Type 'I can do it' in 'Message' text box
            uIMessageEdit.Text = this.TechLoginTakeJobLogoutParams.UIMessageEditText;

            // Type '2016-12-22' in 'AvailabilityDate' text box
            uIAvailabilityDateEdit.Text = this.TechLoginTakeJobLogoutParams.UIAvailabilityDateEditText;

            // Click 'Send' button
            Mouse.Click(uISendButton, new Point(26, 24));

            // Click 'Log off' text box
            Mouse.Click(uILogoffEdit, new Point(21, 20));
        }
예제 #6
0
        /// <summary>
        /// Choses book from list and clicks edit.
        /// </summary>
        public void EditBook()
        {
            #region Variable Declarations
            WinCell   uIŚwiatdyskuCell = this.UIBrowseBooksMozillaFiWindow.UIItemGroup.UIŚwiatdyskuCell;
            WinCustom uIItemCustom     = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemCustom;
            #endregion

            // Click 'Świat dysku' cell
            Mouse.Click(uIŚwiatdyskuCell, new Point(176, 22));

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(22, 28));
        }
예제 #7
0
        /// <summary>
        /// Checks book details
        /// </summary>
        public void SeeBookDetailsMethod()
        {
            #region Variable Declarations
            WinCell   uIItem19350720Cell = this.UIBrowseBooksMozillaFiWindow.UIItemGroup.UIItem19350720Cell;
            WinCustom uIItemCustom1      = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemCustom1;
            #endregion

            // Click '1935-07-20' cell
            Mouse.Click(uIItem19350720Cell, new Point(205, 5));

            // Click custom control
            Mouse.Click(uIItemCustom1, new Point(14, 25));
        }
예제 #8
0
        /// <summary>
        /// start - Используйте "startParams" для передачи параметров в этот метод.
        /// </summary>
        public void start()
        {
            #region Variable Declarations
            WinCustom uIItemCustom = this.UIItemWindow.UI_userNameWindow.UIItemCustom;
            WinEdit   uI_userName_EmbeddableEdit = this.UIItemWindow.UI_userName_EmbeddableWindow.UI_userName_EmbeddableEdit;
            WinCustom uIItemCustom1 = this.UIItemWindow.UI_passwordWindow.UIItemCustom;
            WinEdit   uI_password_EmbeddableEdit = this.UIItemWindow.UI_password_EmbeddableWindow.UI_password_EmbeddableEdit;
            WinButton uIВойтиButton        = this.UIItemWindow.UIВойтиWindow.UIВойтиButton;
            WinButton uIЖурналыButton      = this.UIКвазарЖурналфлюорогрWindow.UI_pluginContainerWindow.UIЖурналыButton;
            WinButton uISplitterBarButton  = this.UIКвазарЖурналфлюорогрWindow.UI_pluginContainerWindow.UISplitterBarButton;
            WinButton uIСистемаправButton  = this.UIКвазарЖурналфлюорогрWindow.UI_pluginContainerWindow.UIСистемаправButton;
            WinButton uIОбследованияButton = this.UIКвазарЖурналфлюорогрWindow.UIMedSoftRegistriesWindow.UIОбследованияButton;
            #endregion

            // Запуск "%ProgramFiles%\ООО МедСофт\Квазар\MedSoft.Start.exe"
            ApplicationUnderTest uIItemWindow = ApplicationUnderTest.Launch(this.startParams.UIItemWindowExePath, this.startParams.UIItemWindowAlternateExePath);

            // Щелкните пользовательский элемент управления
            Mouse.Click(uIItemCustom, new Point(116, 12));

            // Тип "" в "_userName_EmbeddableTextBox" надпись
            uI_userName_EmbeddableEdit.Text = this.startParams.UI_userName_EmbeddableEditText;

            // Щелкните "_userName_EmbeddableTextBox" надпись
            Mouse.Click(uI_userName_EmbeddableEdit, new Point(134, 9));

            // Тип "Лушкин медсофт" в "_userName_EmbeddableTextBox" надпись
            uI_userName_EmbeddableEdit.Text = this.startParams.UI_userName_EmbeddableEditText1;

            // Щелкните пользовательский элемент управления
            Mouse.Click(uIItemCustom1, new Point(18, 15));

            // Тип "********" в "_password_EmbeddableTextBox" надпись
            Keyboard.SendKeys(uI_password_EmbeddableEdit, this.startParams.UI_password_EmbeddableEditSendKeys, true);

            // Щелкните "Войти" кнопка
            Mouse.Click(uIВойтиButton, new Point(32, 9));

            // Щелкните "Журналы" кнопка
            Mouse.Click(uIЖурналыButton, new Point(27, 12));

            // Перемещение  "Splitter Bar" кнопка в "Система прав" кнопка

            uISplitterBarButton.EnsureClickable(new Point(uISplitterBarButton.Left, uISplitterBarButton.Top));
            Mouse.StartDragging(null, new Point(116, 185));//,  MouseButtons.Left);
            //Mouse.StartDragging(null, new Point(103, 300));
            Mouse.StopDragging(null, new Point(116, 670));
            // Щелкните "Обследования" кнопка
            Mouse.Click(uIОбследованияButton, new Point(110, 20));
        }
예제 #9
0
        /// <summary>
        /// RunAccess - Use 'RunAccessParams' to pass parameters into this method.
        /// </summary>
        public void RunAccess()
        {
            #region Variable Declarations
            WinCustom uIItemCustom   = this.UIMicrosoftAccessPreviWindow.UIItemCustom;
            WinCustom uIItemCustom1  = this.UIMicrosoftAccessPreviWindow.UIItemCustom1;
            WinCustom uIItemCustom2  = this.UIMicrosoftAccessPreviWindow.UIItemCustom2;
            WinClient uIItemClient   = this.UIMicrosoftAccessPreviWindow.UIItemWindow.UIItemClient;
            WinCustom uIItemCustom3  = this.UISaveAsWindow.UIItemCustom;
            WinCustom uIItemCustom31 = this.UIMicrosoftAccessPreviWindow.UIItemCustom3;
            #endregion

            // Launch '%ProgramW6432%\Microsoft Office 15\root\office15\msaccess.exe' with arguments '""'
            ApplicationUnderTest msaccessApplication = ApplicationUnderTest.Launch(this.RunAccessParams.ExePath, this.RunAccessParams.AlternateExePath, "\"\"");

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(772, 335));

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(772, 335));

            // Type 'Something{Enter}' in custom control
            Keyboard.SendKeys(uIItemCustom1, this.RunAccessParams.UIItemCustom1SendKeys, ModifierKeys.None);

            // Click custom control
            Mouse.Click(uIItemCustom2, new Point(432, 283));

            // Type 'My{Space}Name{Space}is{Space}Jonas{Tab}' in client
            Keyboard.SendKeys(uIItemClient, this.RunAccessParams.UIItemClientSendKeys, ModifierKeys.None);

            // Type 'Control + s' in client
            Keyboard.SendKeys(uIItemClient, this.RunAccessParams.UIItemClientSendKeys1, ModifierKeys.Control);

            // Type 'M{Back}Joh{Back}{Back}onas{Enter}' in custom control
            Keyboard.SendKeys(uIItemCustom3, this.RunAccessParams.UIItemCustomSendKeys, ModifierKeys.None);

            // The control for this action was not recorded.

            // The control for this action was not recorded.

            // The control for this action was not recorded.

            // Click custom control
            Mouse.Click(uIItemCustom31, new Point(1500, 93));
        }
예제 #10
0
        /// <summary>
        /// Log into System Successfully
        /// </summary>
        public void LoginSuccess()
        {
            #region Variable Declarations
            WinCustom  uIItemCustom   = this.UIC4SerializationAppliWindow.UIItemWindow1.UIItemCustom;
            WinControl uIItemDocument = this.UIC4SerializationAppliWindow.UIItemWindow1.UIItemDocument;
            #endregion

            // Click custom control
            Mouse.Click(uIItemCustom, new Point(114, 16));

            // Type 'jleung{Tab}' in custom control
            Keyboard.SendKeys(uIItemCustom, this.LoginSuccessParams.UIItemCustomSendKeys, ModifierKeys.None);

            // Type '1234{+}five' in custom control
            Keyboard.SendKeys(uIItemCustom, this.LoginSuccessParams.UIItemCustomSendKeys1, ModifierKeys.None);

            // Click document
            Mouse.Click(uIItemDocument, new Point(242, 351));
        }
예제 #11
0
        /// <summary>
        /// Modifies a book
        /// </summary>
        public void EditBookMethod()
        {
            #region Variable Declarations
            WinEdit   uIDavidAttenboroughEdit = this.UIBrowseBooksMozillaFiWindow.UIDavidAttenboroughCell.UIDavidAttenboroughEdit;
            WinEdit   uIItemEdit   = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemEdit;
            WinEdit   uITitleEdit  = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UITitleEdit;
            WinCustom uIItemCustom = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemCustom;
            #endregion

            // Click 'David Attenborough' text box
            Mouse.Click(uIDavidAttenboroughEdit, new Point(96, 13));

            // Click text box
            Mouse.Click(uIItemEdit, new Point(0, 18));

            // Type 'Przyroda - Liceum' in 'Title' text box
            uITitleEdit.Text = this.EditBookMethodParams.UITitleEditText;

            // Click custom control numbered 2 in 'Browse Books' document
            Mouse.Click(uIItemCustom, new Point(12, 13));
        }
예제 #12
0
        /// <summary>
        /// Modifies a book
        /// </summary>
        public void EditBook()
        {
            #region Variable Declarations
            WinCell   uIItem19350720Cell = this.UIBrowseBooksMozillaFiWindow.UIItemGroup.UIItem19350720Cell;
            WinEdit   uIEditBookEdit     = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIEditBookEdit;
            WinEdit   uITitleEdit        = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UITitleEdit;
            WinCustom uIItemCustom       = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemCustom;
            #endregion

            // Click '1935-07-20' cell
            Mouse.Click(uIItem19350720Cell, new Point(160, 15));

            // Click 'Edit Book' text box
            Mouse.Click(uIEditBookEdit, new Point(20, 2));

            // Type 'Przyroda - Liceum' in 'Title' text box
            uITitleEdit.Text = this.EditBookParams.UITitleEditText;

            // Click custom control numbered 2 in 'Browse Books' document
            Mouse.Click(uIItemCustom, new Point(13, 22));
        }
예제 #13
0
        /// <summary>
        /// Modifies a book
        /// </summary>
        public void EditBooksMethod()
        {
            #region Variable Declarations
            WinEdit   uIItem19350720Edit = this.UIBrowseBooksMozillaFiWindow.UIItem19350720Cell.UIItem19350720Edit;
            WinEdit   uIEditBookEdit     = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIEditBookEdit;
            WinEdit   uITitleEdit        = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UITitleEdit;
            WinCustom uIItemCustom       = this.UIBrowseBooksMozillaFiWindow.UIBrowseBooksDocument.UIItemCustom;
            #endregion

            // Click '1935-07-20' text box
            Mouse.Click(uIItem19350720Edit, new Point(10, 14));

            // Click 'Edit Book' text box
            Mouse.Click(uIEditBookEdit, new Point(4, 4));

            // Type 'Przyroda - Liceum' in 'Title' text box
            uITitleEdit.Text = this.EditBooksMethodParams.UITitleEditText;

            // Click custom control numbered 2 in 'Browse Books' document
            Mouse.Click(uIItemCustom, new Point(11, 18));
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="status"></param>
        /// <param name="optionName"></param>
        /// <returns></returns>
        public static WinCustom GetStatusOption(this WinStatusBar status, string optionName)
        {
            Console.WriteLine("Get status bar option: " + optionName);
            //Test Case PremCore-3312: 50: Cursor Position Option
            string searchText = "";

            switch (optionName.ToLower())
            {
            case "cursor position":
                searchText = "X,Y: ";
                break;

            case "pixel value":
                searchText = "RGB: ";
                break;
            }
            var tesst = new WinCustom(status);

            tesst.SearchProperties.Add(new PropertyExpression(WinCustom.PropertyNames.ControlName, "McStatusBar", PropertyExpressionOperator.Contains));
            tesst.SearchProperties.Add(new PropertyExpression(WinCustom.PropertyNames.Name, searchText, PropertyExpressionOperator.Contains));
            return(tesst);
        }
예제 #15
0
        /// <summary>
        /// RecordedMethod1 - Use 'RecordedMethod1Params' to pass parameters into this method.
        /// </summary>
        public void RecordedMethod1()
        {
            #region Variable Declarations
            WinEdit     uILoginEdit         = this.UIHomePageProjectMozilWindow.UILoginHyperlink.UILoginEdit;
            WinEdit     uIUsernameEdit      = this.UIHomePageProjectMozilWindow.UILoginProjectDocument.UIUsernameEdit;
            WinListItem uIAdminListItem     = this.UIItemWindow.UIItemList.UIAdminListItem;
            WinCustom   uIItemCustom        = this.UIHomePageProjectMozilWindow.UIItemCustom;
            WinEdit     uIPasswordEdit      = this.UIHomePageProjectMozilWindow.UILoginProjectDocument.UIPasswordEdit;
            WinButton   uILoginButton       = this.UIHomePageProjectMozilWindow.UILoginProjectDocument.UILoginButton;
            WinCustom   uIItemCustom1       = this.UIHomePageProjectMozilWindow.UIHomePageProjectDocument.UIItemCustom;
            WinEdit     uIBooksEdit         = this.UIHomePageProjectMozilWindow.UIBooksHyperlink.UIBooksEdit;
            WinEdit     uIEditEdit          = this.UIHomePageProjectMozilWindow.UIEditHyperlink.UIEditEdit;
            WinComboBox uIAuthorIDComboBox  = this.UIHomePageProjectMozilWindow.UIEditProjectDocument.UIAuthorIDComboBox;
            WinComboBox uIAuthorIDComboBox1 = this.UIItemWindow1.UIAuthorIDComboBox;
            WinButton   uISaveButton        = this.UIHomePageProjectMozilWindow.UIEditProjectDocument.UISaveButton;
            #endregion

            // Click 'Log in' text box
            Mouse.Click(uILoginEdit, new Point(14, 6));

            // Type 'ad' in 'User name' text box
            uIUsernameEdit.Text = this.RecordedMethod1Params.UIUsernameEditText;

            // Click 'admin' list item
            Mouse.Click(uIAdminListItem, new Point(81, 7));

            // Double-Click custom control
            Mouse.DoubleClick(uIItemCustom, new Point(212, 104));

            // Double-Click custom control
            Mouse.DoubleClick(uIItemCustom, new Point(212, 104));

            // Double-Click custom control
            Mouse.DoubleClick(uIItemCustom, new Point(212, 104));

            // Double-Click custom control
            Mouse.DoubleClick(uIItemCustom, new Point(212, 104));

            // Click 'Password' text box
            Mouse.Click(uIPasswordEdit, new Point(58, 14));

            // Click 'Password' text box
            Mouse.Click(uIPasswordEdit, new Point(58, 14));

            // Type '********' in 'Password' text box
            Keyboard.SendKeys(uIPasswordEdit, this.RecordedMethod1Params.UIPasswordEditSendKeys, true);

            // Last mouse action was not recorded.

            // Click 'Log in' text box
            Mouse.Click(uILoginEdit, new Point(25, 11));

            // Type 'admin' in 'User name' text box
            uIUsernameEdit.Text = this.RecordedMethod1Params.UIUsernameEditText1;

            // Click 'Password' text box
            Mouse.Click(uIPasswordEdit, new Point(98, 19));

            // Type '********' in 'Password' text box
            Keyboard.SendKeys(uIPasswordEdit, this.RecordedMethod1Params.UIPasswordEditSendKeys1, true);

            // Click 'Log in' button
            Mouse.Click(uILoginButton, new Point(32, 30));

            // Click custom control numbered 2 in 'Home Page - Project' document
            Mouse.Click(uIItemCustom1, new Point(311, 24));

            // Click 'Books' text box
            Mouse.Click(uIBooksEdit, new Point(27, 7));

            // Click 'Edit' text box
            Mouse.Click(uIEditEdit, new Point(8, 15));

            // Click 'AuthorID' combo box
            Mouse.Click(uIAuthorIDComboBox, new Point(104, 13));

            // Click 'AuthorID' combo box
            Mouse.Click(uIAuthorIDComboBox1, new Point(85, 45));

            // Click 'Save' button
            Mouse.Click(uISaveButton, new Point(22, 22));
        }
예제 #16
0
        /// <summary>
        /// huobobermattstrasse2 - Verwenden Sie "huobobermattstrasse2Params", um Parameter an diese Methode zu übergeben.
        /// </summary>
        public void huobobermattstrasse2()
        {
            #region Variable Declarations
            WinComboBox uICb_startComboBox             = this.UITransportAppWindow.UICb_startWindow.UICb_startComboBox;
            WinButton   uIStationsuchenButton          = this.UITransportAppWindow.UIStationsuchenWindow.UIStationsuchenButton;
            WinComboBox uIBittegebenSieIhreStaComboBox = this.UITransportAppWindow.UICb_endWindow.UIBittegebenSieIhreStaComboBox;
            WinButton   uIStationsuchenButton1         = this.UITransportAppWindow.UIStationsuchenWindow1.UIStationsuchenButton;
            WinButton   uIVerbindungsuchenButton       = this.UITransportAppWindow.UIVerbindungsuchenWindow.UIVerbindungsuchenButton;
            WinButton   uIZumStationenFahrplanButton   = this.UITransportAppWindow.UIZumStationenFahrplanWindow.UIZumStationenFahrplanButton;
            WinCustom   uIItemCustom         = this.UICodedUITestsdoVisualWindow.UIItemGroup.UIItemCustom;
            WinClient   uITransportAppClient = this.UITransportAppWindow.UITransportAppClient;
            #endregion

            // "Huob" in "cb_start" Kombinationsfeld auswählen
            uICb_startComboBox.EditableItem = this.huobobermattstrasse2Params.UICb_startComboBoxEditableItem;

            // Klicken "&Station suchen" Schaltfläche
            Mouse.Click(uIStationsuchenButton, new Point(26, 7));

            // "obermattstrasse" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen
            uIBittegebenSieIhreStaComboBox.EditableItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxEditableItem;

            // Klicken "Station such&en" Schaltfläche
            Mouse.Click(uIStationsuchenButton1, new Point(32, 14));

            // Klicken "Verbindung suchen" Schaltfläche
            Mouse.Click(uIVerbindungsuchenButton, new Point(125, 23));

            // Klicken "Zum Stationen Fahrplan" Schaltfläche
            Mouse.Click(uIZumStationenFahrplanButton, new Point(155, 18));

            // Klicken "Zum Stationen Fahrplan" Schaltfläche
            Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3));

            // Klicken "Zum Stationen Fahrplan" Schaltfläche
            Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3));

            // Klicken "Zum Stationen Fahrplan" Schaltfläche
            Mouse.Click(uIZumStationenFahrplanButton, new Point(154, 3));

            // Klicken Benutzerdefiniertes Steuerelement
            Mouse.Click(uIItemCustom, new Point(534, 120));

            // "huob" in "cb_start" Kombinationsfeld auswählen
            uICb_startComboBox.EditableItem = this.huobobermattstrasse2Params.UICb_startComboBoxEditableItem1;

            // Klicken "Transport App" Client
            Mouse.Click(uITransportAppClient, new Point(313, 58));

            // Klicken "&Station suchen" Schaltfläche
            Mouse.Click(uIStationsuchenButton, new Point(41, 12));

            // "kreuz" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen
            uIBittegebenSieIhreStaComboBox.EditableItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxEditableItem1;

            // Klicken "Station such&en" Schaltfläche
            Mouse.Click(uIStationsuchenButton1, new Point(26, 9));

            // "Schaffhausen, Kreuz" in "Bitte geben Sie Ihre Startstation ein:" Kombinationsfeld auswählen
            uIBittegebenSieIhreStaComboBox.SelectedItem = this.huobobermattstrasse2Params.UIBittegebenSieIhreStaComboBoxSelectedItem;

            // Klicken "Verbindung suchen" Schaltfläche
            Mouse.Click(uIVerbindungsuchenButton, new Point(73, 24));

            // Klicken "Verbindung suchen" Schaltfläche
            Mouse.Click(uIVerbindungsuchenButton, new Point(133, 9));

            // Klicken "Transport App" Client
            Mouse.Click(uITransportAppClient, new Point(226, 197));

            // Klicken "Zum Stationen Fahrplan" Schaltfläche
            Mouse.Click(uIZumStationenFahrplanButton, new Point(141, 4));

            // Klicken "Transport App" Client
            Mouse.Click(uITransportAppClient, new Point(242, 198));
        }