is this a web Page or window dialog which pops up after clicking on Print button?
if this is a browser,Can you try does Browser().close works?
or for dialog see there must be some cancel button to close that.
if this is a browser,Can you try does Browser().close works?
or for dialog see there must be some cancel button to close that.

