Esempio n. 1
0
        /// <summary>
        /// Navigate to wireless page
        /// </summary>
        private void NavigateToWireless()
        {
            _controlPanel.PressKey(PhoenixSoftKey.Home);

            do
            {
                _controlPanel.ScrollRight(1);
            }while (!_controlPanel.GetVirtualButtons().Any(x => x.Name == "cSetupHomeTouchButton"));

            _controlPanel.Press("cSetupHomeTouchButton");
            _pacekeeper.Pause();
            do
            {
                _controlPanel.ScrollDown(50);
            }while (!_controlPanel.GetVirtualButtons().Any(x => x.Name == "cNetworkConfig"));

            _controlPanel.Press("cNetworkConfig");
            _pacekeeper.Pause();
            _controlPanel.Press("cWirelessMenu");
            _pacekeeper.Pause();
        }
Esempio n. 2
0
        /// <summary>
        /// Adds the specified network folder path as a destination for the scanned file.
        /// </summary>
        /// <param name="path">The network folder path.</param>
        /// <param name="credential">The network credential parameter is being added to provide the network credentials to access folder path </param>
        /// /// <param name="applyCredentials"><value><c>true</c> if apply credentials on verification is checked;otherwise, <c>false</c>.</value></param>
        public void AddFolderPath(string path, NetworkCredential credential, bool applyCredentials)////network credential for folder access is supported for Omni device.PhoenixNova yet to be supported
        {
            try
            {
                // Phoenix does not support but can just press the first button
                var buttons = _controlPanel.GetVirtualButtons();
                if (buttons.Count == 1)
                {
                    _executionManager.PressSolutionButton("Select network folder.", buttons[0].Name);
                }

                Pacekeeper.Sync();
            }
            catch (PhoenixInvalidOperationException ex)
            {
                throw new DeviceWorkflowException($"Error selecting folder path: {ex.Message}", ex);
            }
        }
        /// <summary>
        /// Determines if the given button name exists on the current page.
        /// </summary>
        /// <param name="buttonName">Name of the button.</param>
        /// <returns>bool</returns>
        public bool ButtonExist(string buttonName)
        {
            var buttons = _controlPanel.GetVirtualButtons();

            return(buttons.Any(btn => btn.Name.Equals(buttonName)));
        }
Esempio n. 4
0
        /// <summary>
        /// Virtual method for retrieving the current control ids.
        /// </summary>
        public override void GetCurrentControlIds()
        {
            var virtualButtons = _phoenixNovaControlPanel.GetVirtualButtons();

            ProcessControlIds(virtualButtons.Select(x => x.Name));
        }