Product review (5 stars): Quick repair fo our Whirlpool dryer
This part worked just fine on our Whirlpool dryer and was much less expensive than getting it locally.  There are several videos on YouTube that show how to swap it out. It required only a Philips screwdriver and a putty knife (to release clips securing the top).  The old switch had 2 wires but as indicated in the questions section this one works fine.  Give it a try!