Obstructive sleep apnea (OSA) is a highly prevalent condition characterized by episodes of partial or complete breath cessation during sleep that induces sleep fragmentation (SF). One of the frequent manifestations of OSA is the presence of excessive daytime sleepiness (EDS) associated with cognitive deficits. Solriamfetol (SOL) and modafinil (MOD) are wake-promoting agents commonly prescribed to improve wakefulness in OSA patients with EDS. This study aimed to assess the effects of SOL and MOD in a murine model of OSA characterized by periodic SF. Male C57Bl/6J mice were exposed to either control sleep (SC) or SF (mimicking OSA) during the light period (06:00 h to 18:00 h) for 4 weeks, which consistently induces sustained excessive sleepiness during the dark phase. Both groups were then randomly assigned to receive once-daily intraperitoneal injections of SOL (200 mg/kg), MOD (200 mg/kg), or vehicle for 1 week while continuing exposures to SF or SC. Sleep/wake activity and sleep propensity were assessed during the dark phase. Novel Object Recognition test, Elevated-Plus Maze Test, and Forced Swim Test were performed before and after treatment. SOL or MOD decreased sleep propensity in SF, but only SOL induced improvements in explicit memory, while MOD exhibited increased anxiety behaviors. Chronic SF, a major hallmark of OSA, induces EDS in young adult mice that is mitigated by both SOL and MOD. SOL, but not MOD, significantly improves SF-induced cognitive deficits. Increased anxiety behaviors are apparent in MOD-treated mice. Further studies aiming to elucidate the beneficial cognitive effects of SOL are warranted.