Esempio n. 1
0
        private void OpenPropertiesDialog(CmdApp app, OpenTarget target)
        {
            var titleBar = app.GetTitleBar();

            app.Session.Mouse.ContextClick(titleBar.Coordinates);

            Globals.WaitForTimeout();
            var contextMenu = app.Session.FindElementByClassName(Globals.PopupMenuClassId);

            AppiumWebElement propButton;

            switch (target)
            {
            case OpenTarget.Specifics:
                propButton = contextMenu.FindElementByName("Properties");
                break;

            case OpenTarget.Defaults:
                propButton = contextMenu.FindElementByName("Defaults");
                break;

            default:
                throw new NotImplementedException(AutoHelpers.FormatInvariant("Open Properties dialog doesn't yet support target type of '{0}'", target.ToString()));
            }

            propButton.Click();

            Globals.WaitForTimeout();

            this.PropWindow = this.app.UIRoot.FindElementByClassName(Globals.DialogWindowClassId);
            this.Tabs       = this.PropWindow.FindElementByClassName("SysTabControl32");

            okButton     = this.PropWindow.FindElementByName("OK");
            cancelButton = this.PropWindow.FindElementByName("Cancel");
        }
        public ViewportArea(CmdApp app)
        {
            this.app = app;

            this.state = ViewportStates.Normal;

            this.InitializeFont();
            this.InitializeWindow();
        }
Esempio n. 3
0
 public PropertiesDialog(CmdApp app)
 {
     this.app = app;
 }