Yes solar panels comes with a warranty of 10 years. If there is any irregularities in your solar panel power generation, you can apply for a warranty claim.
Moreover, solar panels also comes with 25 years of performance warranty. This mean that for the first 10 years, you solar panels will run at 97% of its given efficiency. For the rest of 15 years, it will run at 80% of its given efficiency. If you solar performance is unsatisfactory, you can apply for warranty claim.