How to use Applescript to open a printer app and select items within?
I believe I've roughly translated your steps into a working AppleScript:
tell application &quot;Canon iX6800 series&quot; to activate -- Run &quot;Canon iX6800 series&quot;
delay 0.25
tell application &quot;System Events&quot; to tell process &quot;Canon iX6800 series&quot;
    click menu item &quot;Canon iX6800 series&quot; of menu &quot;Window&quot; of menu bar 1
    click menu item &quot;Settings&quot; of menu &quot;Printer&quot; of menu bar 1 -- Select &quot;Settings&quot;
    click radio button &quot;Utility&quot; of tab group 1 of sheet 1 of window 1 -- Select &quot;Utility&quot;
    click button &quot;Print Test Page&quot; of tab group 1 of sheet 1 of window 1 -- Select &quot;Print Test Page&quot;
    key code 53 -- escape key (selects Cancel)
end tell
tell application &quot;Canon iX6800 series&quot; to quit -- Quit the app

Note that the part at the beginning (with the delay and window selection) is necessary to ensure that an active window is open in the printer app; otherwise, the Settings panel won't be able to open if a window isn't already open.

Although the following isn't what the OP is asking for, in case anybody else is looking to do this with a printer that doesn't supply a &quot;Print Test Page&quot; option in the Settings panel, here's an alternate solution:

Open the &quot;Canon iX6800 series&quot; app
Click the &quot;Print Test Page&quot; menu item in the &quot;Printer&quot; menu
Quit the app

To accomplish this, replace lines 5–7 of the above with click menu item &quot;Print Test Page&quot; of menu &quot;Printer&quot; of menu bar 1.