An arrangement, and associated method, for cleaning and disinfecting an endoscope having an internal channel accessible via an opening. The arrangement includes: a support structure; at least one tray including at least one fixture arranged to maintain the endoscope in the desired position within the tray; a rack arranged to support the tray; a control unit arranged to control and operate the arrangement; a user interface connected to the control unit and arranged to make it possible for an operator to indicate the type of endoscope arranged in the tray; an optical device connected to the control unit and configured to confirm the type of endoscope arranged in the tray; a robotic device operated by the control unit and arranged to clean the at least one channel in the endoscope arranged in the tray; and a disinfector device arranged to enclose the tray and disinfect the endoscope.