-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Remote-Robot framework does not support native parts of the IntelliJ Idea #17
Comments
Hello, thanks for the issue. We are working on separate library with basic fixtures and I believe we going to publish it soon. We expecting it will contains methods to work with native menu via |
Hello, |
@nizienko I tried to use that fixture, but I am not able to create instance on OS X (probably I need to use another approach because of the native parts on OS X). When I use:
I get an error:
|
@zcervink could you try following code, please: |
@mkfl3x I have tried it several times on OS X 11.5.2. When I run it from IntelliJ, it always uses the menu of IntelliJ I use to develop my tests, not the menu of IntelliJ that starts and is used to run the UI tests (I have focus on the IntelliJ that is used to run the UI tests, that does not help). When I run it from terminal, it fails (WaitForConditionTimeoutException), probably it is looking for the menu of IntelliJ, that is now closed. After several unsuccessful attempts I have also tried the following code, it gave me the same results:
|
@mkfl3x I have an important update. I have tried the JPopupMenuFixture (not native parts of IntelliJ on OS X) and it works without any issue. I have open context menu and after that the following code navigates and clicks as expected. Well, the JMenuBarFixture does not address the right process/IntelliJ instance.
|
@mkfl3x @nizienko I have discussed this issue with my team - this issue is caused probably by wrong name of the IntelliJ used to run the UI tests (the name is generated in the JMenuBarFixture class). In my case (and I think it will be in all cases), the IntelliJ is name 'Main'. I think it will be really easy to fix. |
@zcervink Thanks for the investigation, seems that processName='Main' when we run idea with gradle. We will think how to handle this. |
I am not sure if this exactly related. But when I try to simply get access to the menu bar (even if the right instance) the call gets timed out. val barFixture = remoteRobot.find<JMenuBarFixture>(JMenuBarFixture.byType(), Duration.ofSeconds(10)) Exceeded timeout (PT10S) for condition function (Failed to find 'JMenuBarFixture' by 'by type javax.swing.JMenuBar' in 10s)
com.intellij.remoterobot.utils.WaitForConditionTimeoutException: Exceeded timeout (PT10S) for condition function (Failed to find 'JMenuBarFixture' by 'by type javax.swing.JMenuBar' in 10s) Even if I enter an actual xpath.
|
@bric3 Could you please check the xpath in the browser? You can stop at the breakpoint on |
@bric3 for File Chooser Dialog you can use |
Ah cool thanks |
Hello @bric3, I am facing the same issue as I also can't make the native menu bar and sheets show up, despite having set:
Would you happen to know if this is still the recommended way to go about this ? |
Do you mean you want to disable the Mac native menu and file chooser? Then these properties are correct. Check how we defined it in our test project |
Thank you @nizienko ! Yes, that is exactly how they have been defined in Our project as well, but the native menu still shows up |
@gsaslis Indeed, just checked that |
@nizienko I'm trying with both but neither seems to be having any effect... could I please ask you to send me a screenshot of how it looks like on your machine when it is enabled? |
thanks @nizienko - setting both (!) to false did the trick... apologies I should have spotted that myself earlier! |
Ah thanks for the update, this seem to have changed indeed. |
The text was updated successfully, but these errors were encountered: