If the gas cap was truly the cause of concern, it won't clear on it's own right away. A diagnostic tool may be needed. However, if you continue driving and the concern is resolved, the light will eventually go off.
RepairPal Certified shops can diagnose and repair your 2010 Lexus ES350. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.