Table of contents
- When performing a browser test on Mac, the screen capture in the “Window” range is completely dark
- Unrelated Window screen captures are acquired
- Unable to acquire screen captures for tests run on an external display
- About whitespace in screenshots during mobile emulation
When performing a browser test on Mac, the screen capture in the “Window” range is completely dark
This issue occurs on macOS Catalina (10.15) and later due to privacy settings. Take the following steps to resolve the issue.
- Open Mac Settings.
- Go to Privacy & Security > Screen Recording.
- Select MagicPodDesktop.
- Relaunch MagicPodDesktop.
Unrelated Window screen captures are acquired
If another window overlaps the browser window, the screen capture may include the wrong window.
Ensure that no windows overlap when running the test.
Unable to acquire screen captures for tests run on an external display
If multiple displays are connected, screen detection may fail in the following cases:
- Mac users: Tests must be run on the main display, as external displays are not supported.
- Windows spanning multiple displays: If the test window straddles multiple screens, detection may fail. Keep it within a single display.
- High-resolution display setups: If using both a high-resolution laptop screen and a regular external display, set the high-resolution screen as the main display. Otherwise, the test may fail.
-
Unusual display arrangements: Some screen configurations may prevent detection.
- Example (Detection succeeds): The sub-display is arranged within the main display's boundaries.
- Example (Detection fails): The sub-display extends beyond the edge of the main display.
If detection issues persist, try adjusting the display arrangement.
About whitespace in screenshots during mobile emulation
When capturing screenshots in "window scope" during mobile emulation, you may notice extra whitespace appearing on the right side of the image. This is expected behavior and not a bug.
This occurs when the mobile device's viewport size (e.g., 375px) is smaller than the actual browser window width. Since window-scope screenshots capture the entire browser window by design, the area outside the emulated device's screen appears as whitespace in the captured image.
This whitespace does not affect test execution or validation, so there is no cause for concern. If you prefer to capture screenshots without the extra whitespace, we recommend using the HTML-scope screenshot setting.