-
Notifications
You must be signed in to change notification settings - Fork 14
Linux inspector2 #615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Linux inspector2 #615
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3a1ed7 to
ce5ed61
Compare
Muntasib-creator
approved these changes
Dec 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Feature
Overview
This pull requests adds new action set for linux. The following linux actions has been added.
Test Cases
TEST-12137
Future improvement
Need to have support for flatpak apps. Most actions needs to have more options. New actions needed to have robust testing environment
Documentation
Video
https://drive.google.com/file/d/1t0BgSL-TG6hhZ8YCWVeTM-miC-R12VQe/view?usp=sharing
Example Test
https://qa.zeuz.ai/Home/ManageTestCases/Edit/TEST-12137
Linux inspector setup:
Available Node commands:
uv run node_cli.py -ild (This installs all required dependency for linux)
uv run node_cli.py -lsa (This shows list of available running apps)
uv run node_cli.py -dui (This generates UI dump. You can use this to automate linux application)
Available Actions:
General guide
uv run node_cli.py -lsato get the actual name of the running applicationuv run node_cli.py -dui app_name > ui.xmlThis will create a ui dump for the application1. Open App
Function:
open_appDescription: Launches a Linux desktop application by name. The function searches for the application in
/usr/share/applications/*.desktopfiles and executes it.Data Set Format:
app_nameelement parameterParameters:
Examples:
Notes:
nohupto run in the background/dev/null2. Close App
Function:
close_appDescription: Closes a running Linux desktop application by terminating its process using
kill -9.Data Set Format:
app_nameelement parameterParameters:
Expected Result:
"passed"if all processes are successfully killed"zeuz_failed"if no process is found or termination failsExamples:
Notes:
pgrep -fto find process IDskill -9) to forcefully terminate3. Click
Function:
click_elementDescription: Clicks on a UI element identified by its path or text content.
Data Set Format:
app_nameelement parameterpathelement parametertextelement parameterwaitelement parameterParameters:
Expected Result:
"passed"on successful click"zeuz_failed"if element is not found or click failsExamples:
Using path:
Using text:
With wait timeout:
Notes:
4. Text
Function:
enter_textDescription: Enters text into an editable UI element (text field, text area, etc.).
Data Set Format:
app_nameelement parameterpathelement parametertextelement parameterwaitelement parameterParameters:
Expected Result:
"passed"on success"zeuz_failed"if element is not found or text entry failsExamples:
Notes:
xdotoolif EditableText is not available5. Wait to Appear
Function:
wait_for_elementDescription: Waits for a UI element to appear within a specified timeout period.
Data Set Format:
app_nameelement parameterpathelement parametertextelement parameterwait to appearactionParameters:
Expected Result:
"passed"when element is found"zeuz_failed"if element doesn't appear within timeoutExamples:
Notes:
6. Wait to Disappear
Function:
wait_for_elementDescription: Waits for a UI element to disappear (be removed from the UI tree) within a specified timeout.
Data Set Format:
app_nameelement parameterpathelement parametertextelement parameterwait to disappearactionParameters:
Examples:
Notes:
7. Save Attribute
Function:
save_attributeDescription: Extracts an attribute value from a UI element and saves it to a shared variable for later use.
Data Set Format:
app_nameelement parameterpathelement parametertextelement parameter<attribute_name>save parameterParameters:
Expected Result:
"passed"on success"zeuz_failed"if element or attribute is not foundExamples:
Save text content:
Save element name:
Save position:
Available Attributes:
text- Text content of the elementname- Element namedescription- Element descriptionstates- Element states (comma-separated)actions- Available actions (comma-separated)x,y- Element position coordinateswidth,height- Element dimensionsNotes:
%variable_name%syntax8. Keystroke Keys
Function:
send_keystrokeDescription: Sends keyboard key combinations (hotkeys) such as Ctrl+C, Alt+F4, etc.
Data Set Format:
keystroke keysactionParameters:
Key Combination Format:
ctrl,alt,shift,super,metaa-z,0-9,f1-f12,return,enter,tab,escape,esc,backspace,delete,up,down,left,right,home,end,page_up,page_down,insert,spacemodifier+key(e.g.,ctrl+c,alt+f4)Expected Result:
"passed"if all keystrokes are sent successfully"zeuz_failed"if any keystroke failsExamples:
Single hotkey:
Multiple hotkeys:
Complex combinations:
Function keys:
Navigation:
Notes:
xdotoolto send keystrokes9. Keystroke Chars
Function:
send_keystrokeDescription: Types individual characters or strings as keyboard input, simulating manual typing.
Data Set Format:
keystroke charsactionParameters:
Expected Result:
"passed"on success"zeuz_failed"on failureExamples:
Type simple text:
Type with special characters:
Type numbers and symbols: