Skip to content

Commit

Permalink
investigating global linux menu issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nizienko committed Nov 7, 2023
1 parent 3428fd9 commit 1c02f1e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import com.intellij.remoterobot.RemoteRobot
import com.intellij.remoterobot.data.RemoteComponent
import com.intellij.remoterobot.fixtures.*
import com.intellij.remoterobot.search.locators.byXpath
import com.intellij.remoterobot.steps.CommonSteps
import com.intellij.remoterobot.stepsProcessing.step
import com.intellij.remoterobot.utils.component
import com.intellij.remoterobot.utils.waitFor
import java.time.Duration

Expand All @@ -28,6 +28,9 @@ class IdeaFrame(remoteRobot: RemoteRobot, remoteComponent: RemoteComponent) :

val menuBar: JMenuBarFixture
get() = step("Menu...") {
if (remoteRobot.findAll(JMenuBarFixture::class.java, JMenuBarFixture.byType()).isEmpty()) {
CommonSteps(remoteRobot).invokeAction("ToggleGlobalLinuxMenu")
}
return@step remoteRobot.find(JMenuBarFixture::class.java, JMenuBarFixture.byType())
}

Expand Down

0 comments on commit 1c02f1e

Please sign in to comment.