| path | /macos-ohjeet |
|---|---|
| title | macOS ohjeet |
| hidden | true |
| information_page | true |
Some of the user interface tests expect that Netbeans/tmcbeans is allowed to move the mouse cursor on the screen. For example to test the buttons in the UI that are created in the exercise. MacOS does not allow this because of the security concerns. This is why tmcbeans has to be given the permission manually.
The permission can be added as follows:
- Open the
System Preferences. You can open it from example by searching from Spotlight (magnifying glass on the upper right corner) by keyword System Preferences and by opening theSystem Preferences.app.
- Press the
Security & Privacyfrom the opened menu.
- From there navigate to
Privacytab and from there toAccessability section.
- Press from the lower left corner "Click the lock to make changes.". In the username field there should be the name of your computer. Write if it's not there. Give your password in the password field and click Unlock.
- Click the plus-icon. Navigate to the folder where your tmcbeans is installed. Select tmcbeans.app and click Open.

Now your tmcbeans should be able to move your mouse cursor during the execution of tests. Note that you may not be allowed to move your cursor or open windows during the tests. Tests should be allowed to run without interference in order for them to work correctly.

