Caps gain confidence with win