Either definition works. You can take advantage of (exploit) someone at their expense, or your can take advantage of (leverage) their capabilities to mutual gain.
Frank took advantage of Amazon's 2-day shipping to do his last-minute Christmas shopping
Frank took advantage of Amazon's 2-day shipping to do his last-minute Christmas shopping