Skip to content

Commit 01ca339

Browse files
authored
Merge pull request #7148 from psiinon/auto/output-switch
automation: Switch to output tab on running plan
2 parents 7a57497 + 8c0a07a commit 01ca339

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

addOns/automation/src/main/java/org/zaproxy/addon/automation/gui/AutomationPanel.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import org.zaproxy.addon.automation.AutomationProgress;
5757
import org.zaproxy.addon.automation.ExtensionAutomation;
5858
import org.zaproxy.addon.automation.tests.AbstractAutomationTest;
59+
import org.zaproxy.addon.commonlib.ui.TabbedOutputPanel;
5960
import org.zaproxy.zap.ZAP;
6061
import org.zaproxy.zap.eventBus.Event;
6162
import org.zaproxy.zap.eventBus.EventConsumer;
@@ -207,6 +208,11 @@ private JButton getRunPlanButton() {
207208
runPlanButton.setEnabled(false);
208209
getStopPlanButton().setEnabled(true);
209210
ext.runPlanAsync(currentPlan);
211+
if (View.getSingleton().getOutputPanel()
212+
instanceof TabbedOutputPanel tabbedPanel) {
213+
tabbedPanel.setSelectedOutputTab(ext.getOutputSource().getName());
214+
tabbedPanel.setTabFocus();
215+
}
210216
});
211217
}
212218
return runPlanButton;

0 commit comments

Comments
 (0)