Skip to content

Commit

Permalink
call show menu action if no menu found
Browse files Browse the repository at this point in the history
  • Loading branch information
nizienko committed Nov 7, 2023
1 parent 5025de7 commit d80fc00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ 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")
CommonSteps(remoteRobot).invokeAction("MainMenuButton.ShowMenu")
}
return@step remoteRobot.find(JMenuBarFixture::class.java, JMenuBarFixture.byType())
}
Expand Down

0 comments on commit d80fc00

Please sign in to comment.