Make sure the Cambelt and water pump have been changed and the auto gearbox has been serviced regularly. Check service history and check MOT history on DVLA site.
Make sure all electronic items work such as auto handbrake, AC and mmi.
If looking at diesels the biggest bills come when needing to replace the dpf, egr or turbo.