Sahi Documentation

Screenshot Issues in Mac OS

Incorrect screen shot captured in Mac operating system

symptom Screen shot captured by Sahi shows the Mac desktop instead of the application screen.
cause Sahi uses Java runtime for capturing the screen shot. If Java runtime does not have access to screen recording on Mac, Sahi will be unable to capture correct screen shot.
resolution Allow Java runtime to record your screen as follows:
  1. On your Mac, choose Apple menu > System Preferences, click Security & Privacy, then click Privacy.
  2. Select Screen Recording.
  3. Select the tickbox next to Java to allow it to record your screen.

Incorrect screen shot captured in Firefox browser on Mac operating system

symptom In Firefox browser, screen shot captured by Sahi contains partial part of Mac desktop instead of the application screen.
resolution Perform following steps to configure Firefox profile :
  1. Append following line to <Sahi>/config/ff_profile_template/pref.js file:
    user_pref("gfx.color_management.mode", 0);
  2. Close Sahi.
  3. Delete <Sahi>/userdata/browser/ff/profile folder.
  4. Start Sahi.