/// <summary> /// Set Paper selection for Size, type and tray /// </summary> /// <param name="paperSize">Sets the paper size using PaperSelectionPaperSize enum</param> /// <param name="paperType">Sets the paper type using PaperSelectionPaperType enum</param> /// <param name="paperTray">Sets the paper tray to use; PaperSelectionPaperTray enum </param> public void SetPaperSelection(PaperSelectionPaperSize paperSize, PaperSelectionPaperType paperType, PaperSelectionPaperTray paperTray) { throw new NotImplementedException("Set Paper selection job not implemented"); }
///<summary> /// Set Paper selection for Size, type and tray /// </summary> /// <param name="paperSize">Sets the paper size </param> /// <param name="paperType">Sets the paper type</param> /// <param name="paperTray">Sets the paper tray to use </param> public virtual void SetPaperSelection(PaperSelectionPaperSize paperSize, PaperSelectionPaperType paperType, PaperSelectionPaperTray paperTray) { throw new NotImplementedException("Setpaperselection feature is not implemented on Jediwindjammer devcies"); }
/// <summary> /// Sets the paper selection. /// </summary> /// <param name="paperSize">Size of the paper.</param> /// <param name="paperType">Type of the paper.</param> /// <param name="paperTray">The paper tray.</param> public void SetPaperSelection(PaperSelectionPaperSize paperSize, PaperSelectionPaperType paperType, PaperSelectionPaperTray paperTray) { OpenOptionsPanel(); if (!_controlPanel.ScrollPressWait("#hpid-option-paper-select", "#hpid-option-paper-select-screen", TimeSpan.FromSeconds(5))) { throw new DeviceWorkflowException("Unable to select paper selection option."); } _controlPanel.ScrollPressWait("#hpid-media-size", "#hpid-media-size-details", TimeSpan.FromSeconds(5)); _controlPanel.ScrollPressWait($"#hpid-media-size-selection-{paperSize.ToString().ToLower()}", ".hp-button-done"); Pacekeeper.Sync(); _controlPanel.ScrollPressWait("#hpid-media-type", "#hpid-media-type-details", TimeSpan.FromSeconds(5)); _controlPanel.ScrollPressWait($"#hpid-media-type-selection-{paperType.ToString().ToLower()}", ".hp-button-done"); Pacekeeper.Sync(); _controlPanel.ScrollPressWait("#hpid-media-source", "#hpid-media-source-details", TimeSpan.FromSeconds(5)); _controlPanel.ScrollPressWait($"#hpid-media-source-selection-{paperTray.ToString().ToLower()}", ".hp-button-done"); Pacekeeper.Sync(); _controlPanel.PressWait(".hp-button-done", ".hp-option-list"); }