Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 3.5 KB

README.en.md

File metadata and controls

57 lines (37 loc) · 3.5 KB

ActiveWindowDebugger

中文 | English

Translate by DeepL

Target framework GitHub issues GitHub stars GitHub license CodeFactor

ActiveWindowDebugger: Active window debugger.

Logo

Introduction

AWD was originally a collaborative debugger for one of my Selenium projects. During Selenium development, there are some elements that require the browser window to be in the active window state in order to locate them successfully. In order to find potential such elements, you need to make the browser window lose the active window to locate the element, and if it fails to locate the element, you need to make the browser window regain the active state to locate the element again, which is not good for debugging, so AWD provides a smooth solution. AWD can make itself get the active window state, with the addition of autostart and autostop trigger conditions, AWD can automatically seize the active window state at the right time.

screenshot

Software Architecture

Powered by C# 10/.NET 7, Proudly Built by WPF.

Command Line Support

[Base]

  • --poll: <int> Activation frequency (ms), default: 1.
  • -topmost: <bool> Top AWD window, default: True.
  • -single: <bool> Single instance mode, default: False.

[Auto-start condition].

  • --auto-start: <bool> Enable/disable auto-start, default: False.
  • --auto-start-state: <bool?> True: active; False: inactive; null: any state, default: True.
  • --auto-start-pid: <int> Process ID, -1 means currently active, default: -1.
  • --auto-start-meet: <bool> Regular expression condition satisfied or not, default: True.
  • --auto-start-regex: <string> Regular expression (matches the process's main window title), default: "."*.
  • --auto-start-match-case: <bool> Whether the regular expression is case sensitive, default: True.

[Auto-stop-case].

  • --auto-stop: <bool> Enable/disable auto-stop, default: False.
  • --auto-stop-state: <bool?> True: active; False: inactive; null: arbitrary, default: True.
  • --auto-stop-pid: <int> Process ID, -1 means currently active, default: -1.
  • --auto-stop-meet: <bool> Regular expression to be met or not met, default: True.
  • --auto-stop-regex: <string> Regular expression (matches the process's main window title), default: "."*.
  • --auto-stop-match-case: <bool> Whether the regular expression is case sensitive, default: True.