Skip to content

feat: Added intellij 2025.2#401

Draft
martinszuc wants to merge 4 commits intoredhat-developer:mainfrom
martinszuc:ij20252
Draft

feat: Added intellij 2025.2#401
martinszuc wants to merge 4 commits intoredhat-developer:mainfrom
martinszuc:ij20252

Conversation

@martinszuc
Copy link
Collaborator

No description provided.

@martinszuc martinszuc marked this pull request as draft February 7, 2026 20:45
@martinszuc martinszuc force-pushed the ij20252 branch 7 times, most recently from 4f70b7b to 5c23373 Compare February 8, 2026 18:11
IntelliJ 2025.1 wrapped the Main Menu button in a MainMenuWithButton
container, breaking the existing XPath locator. Add version-specific
handling to support both old and new UI structures.

- Add MAIN_MENU_2025_1_AND_NEWER constant to XPathDefinitions
- Update MenuBar.navigateTo() to select XPath based on version
- Maintains backward compatibility with versions 2022.3-2024.3

Signed-off-by: Martin Szuc <mszuc@redhat.com>
…5.1+

Added version-specific fix (ideaVersionInt >= 20251) to:
1. Switch to Projects tab before clearing workspace
2. Improve exception handling in projectsCount() to catch all exceptions, not just IndexOutOfBoundsException

Signed-off-by: Martin Szuc <mszuc@redhat.com>
Signed-off-by: Martin Szuc <mszuc@redhat.com>
Signed-off-by: Martin Szuc <mszuc@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant