Unplug the dryer. Raise the top lid. The heater and thermostat will be in the back left corner.
Use a volt/ohm meter set for ohms. Remove the wires from the heater and thermostat. Place a meter lead on each thermostat terminal. No reading is a bad thermostat. Do the same test on the heater terminals. No reading is a bad heater.