JavaDriver/WidgetDropdown fix#4316
Conversation
WalkthroughUpdates JNLP and JAR command assembly in the Java WS launcher to conditionally incorporate one-line parameters with adjusted quoting; updates JS widget selection so both "Select" and "SelectByIndex" use Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant ActLaunch as ActLaunchJavaWSApplication
participant Shell as ExecuteCommandSync
Caller->>ActLaunch: Launch request (mURL_Calc + commandParams_OneLine)
alt URLExtensionType == JNLP
ActLaunch->>ActLaunch: command = "\"" + mURL_Calc + "\""
alt commandParams_OneLine not empty
ActLaunch->>ActLaunch: remove trailing '"' from command
ActLaunch->>ActLaunch: append " " + commandParams_OneLine
ActLaunch->>ActLaunch: add closing '"'
end
else URLExtensionType == JAR
ActLaunch->>ActLaunch: command = "-jar \"" + mURL_Calc + "\""
alt commandParams_OneLine not empty
ActLaunch->>ActLaunch: append " " + commandParams_OneLine
end
end
ActLaunch->>Shell: ExecuteCommandSync(finalCommand)
Shell-->>ActLaunch: result
ActLaunch-->>Caller: return result
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (3 warnings)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (2)
Ginger/GingerCore/Actions/ActLaunchJavaWSApplication.cs(2 hunks)Ginger/GingerCoreNET/Resources/JavaScripts/GingerHTMLHelper.js(2 hunks)
🔇 Additional comments (2)
Ginger/GingerCoreNET/Resources/JavaScripts/GingerHTMLHelper.js (1)
174-181: No action needed on dropdown mapping
All callers—including UI edit pages, action conversion tests, web and Selenium drivers, and Java/Windows handlers—consistently set and consumeValueToSelectfor both “Select” and “SelectByIndex” actions.Ginger/GingerCore/Actions/ActLaunchJavaWSApplication.cs (1)
730-748: Ignore unnecessary JNLP quoting. Removed quotes around the JNLP URL are correct: javaws.exe expects a percent-encoded URL (no raw spaces), and ProcessStartInfo.Arguments handles it without explicit wrapping.Likely an incorrect or invalid review comment.
Thank you for your contribution.
Before submitting this PR, please make sure:
Summary by CodeRabbit