package Ġtech . k zen . auto . server . objects . script . browser Ċ Ċ import Ġorg . openqa . selenium . Keys Ċ import Ġorg . openqa . selenium . OutputType Ċ import Ġorg . openqa . selenium . inter actions . Actions Ċ import Ġtech . k zen . auto . common . par adig m . common . model . Binary Execution Value Ċ import Ġtech . k zen . auto . common . par adig m . common . model . Execution Result Ċ import Ġtech . k zen . auto . common . par adig m . common . model . Execution Success Ċ import Ġtech . k zen . auto . common . par adig m . common . model . Null Execution Value Ċ import Ġtech . k zen . auto . common . par adig m . imp er ative . api . Script Step Ċ import Ġtech . k zen . auto . common . par adig m . imp er ative . model . Imp er ative Model Ċ import Ġtech . k zen . auto . server . service . ServerContext Ċ import Ġtech . k zen . lib . common . model . instance . Graph Instance Ċ import Ġtech . k zen . lib . common . reflect . Reflect ĊĊ Ċ @ Reflect Ċ class ĠSend Escape : ĠScript Step Ġ{ ĊĠĠĠ Ġoverride Ġsuspend Ġfun Ġperform ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġimper ative Model : ĠImp er ative Model , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġgraph Instance : ĠGraph Instance ĊĠĠĠ Ġ): ĠExecution Result Ġ{ ĊĠĠĠĠĠĠĠ Ġ// Ġhttps :// groups . google . com / forum /# ! topic / selenium - users / F 2 c 4 Q WP 5 0 F 8 ĊĊĠĠĠĠĠĠĠ Ġval Ġdriver Ġ= ĠServer Context . web Driver Context . get () ĊĊĠĠĠĠĠĠĠ ĠActions ( driver ). send Keys ( Keys . ESCAPE ). build (). perform () ĊĊĠĠĠĠĠĠĠ Ġval Ġscreenshot P ng Ġ= Ġdriver . get Screenshot As ( OutputType . BYTES ) ĊĠĠĠĠĠĠĠ Ġreturn ĠExecution Success ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠNull Execution Value , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠBinary Execution Value ( screenshot P ng )) ĊĠĠĠ Ġ} Ċ }