From 6fcc114cd2cd86d8d6c04d78b8b5af1c5594c658 Mon Sep 17 00:00:00 2001 From: "vladislav.shishov" Date: Mon, 28 Jul 2025 14:03:15 +0300 Subject: [PATCH] [remote-driver] fix FindInPathPopupUi#browseButton locator (cherry picked from commit f5aac1e4952f92a7ede759535ea211073f07ca5d) IJ-CR-177434 GitOrigin-RevId: d0e387e3dc3695a434d78605d567bbcdc5d68a4f --- .../sdk/ui/components/common/popups/FindInPathPopupUi.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/popups/FindInPathPopupUi.kt b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/popups/FindInPathPopupUi.kt index 0e70c22f6235..9621a864da84 100644 --- a/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/popups/FindInPathPopupUi.kt +++ b/platform/remote-driver/test-sdk/src/com/intellij/driver/sdk/ui/components/common/popups/FindInPathPopupUi.kt @@ -11,7 +11,6 @@ import com.intellij.driver.sdk.ui.components.UiComponent import com.intellij.driver.sdk.ui.components.common.IdeaFrameUI import com.intellij.driver.sdk.ui.components.elements.* import com.intellij.driver.sdk.waitFor -import com.intellij.openapi.util.SystemInfoRt import java.awt.Window import java.awt.event.KeyEvent import javax.swing.JButton @@ -52,7 +51,7 @@ open class FindInPathPopupUi(data: ComponentData): DialogUiComponent(data) { val scopeActionButton = actionButton { and(byType("com.intellij.openapi.actionSystem.impl.ActionButton"), byAccessibleName("Scope")) } val directoryChooser = x { byType("com.intellij.find.impl.FindPopupDirectoryChooser") }.textField() - val browseButton = x { byTooltip(if (SystemInfoRt.isMac) "⇧⏎" else "Shift+Enter") } + val browseButton = x { byVisibleText("...") } val searchRecursivelyActionButton = actionButton { byAccessibleName("Search recursively in subdirectories") } val scopeChooserComboBox = x { byAccessibleName( "Scope selection") }.accessibleComboBox()