@@ -161,6 +161,50 @@ pub enum ActionCommand {
161161 Close ,
162162}
163163
164+ impl ActionCommand {
165+ pub const fn telemetry_name ( & self ) -> & ' static str {
166+ match self {
167+ Self :: Navigate ( _) => "navigate" ,
168+ Self :: Back => "back" ,
169+ Self :: Forward => "forward" ,
170+ Self :: Reload => "reload" ,
171+ Self :: Click ( _) => "click" ,
172+ Self :: DblClick ( _) => "dblclick" ,
173+ Self :: Fill ( _) => "fill" ,
174+ Self :: Type ( _) => "type" ,
175+ Self :: Press ( _) => "press" ,
176+ Self :: Hover ( _) => "hover" ,
177+ Self :: Focus ( _) => "focus" ,
178+ Self :: Check ( _) => "check" ,
179+ Self :: Uncheck ( _) => "uncheck" ,
180+ Self :: Select ( _) => "select" ,
181+ Self :: Clear ( _) => "clear" ,
182+ Self :: SelectAll ( _) => "selectall" ,
183+ Self :: Scroll ( _) => "scroll" ,
184+ Self :: ScrollIntoView ( _) => "scrollintoview" ,
185+ Self :: SetValue ( _) => "setvalue" ,
186+ Self :: Snapshot ( _) => "snapshot" ,
187+ Self :: Screenshot ( _) => "screenshot" ,
188+ Self :: Eval ( _) => "eval" ,
189+ Self :: Find ( _) => "find" ,
190+ Self :: Content => "content" ,
191+ Self :: Get { .. } => "get" ,
192+ Self :: Is { .. } => "is" ,
193+ Self :: Wait ( _) => "wait" ,
194+ Self :: Tab { .. } => "tab" ,
195+ Self :: Cookies { .. } => "cookies" ,
196+ Self :: Storage { .. } => "storage" ,
197+ Self :: Drag ( _) => "drag" ,
198+ Self :: Upload ( _) => "upload" ,
199+ Self :: Highlight ( _) => "highlight" ,
200+ Self :: Set { .. } => "set" ,
201+ Self :: BringToFront => "bringtofront" ,
202+ Self :: Diff { .. } => "diff" ,
203+ Self :: Close => "close" ,
204+ }
205+ }
206+ }
207+
164208// ── Get subcommands ─────────────────────────────────────────────────
165209
166210#[ derive( Subcommand ) ]
0 commit comments