Since you have a volt/ohm meter and are comfortable using it then there are a couple of things you can check yourself to try and pin this problem down.
The F40 error is a communication error which means the main control W10111616 is not communicating with the motor control part number(NNN) NNN-NNNN Most likely neither control is the problem but since the main control was replaced we know it's not the problem.
The key to diagnosing this problem is to check voltage to the motor control. There is a black and white wire going to L1 and neutral. If there is 120 volts to the control and the blower motor is not running then the(NNN) NNN-NNNNmotor control is most likely at fault.
It is more likely you will not read voltage there. Use extreme caution checking live voltage and only do so if you're comfortable and confident using a volt/ohm meter.
If there is no voltage to the motor control and the main motor doesn't run the thermal fuse can be at fault or the main control which was replaced and didn't help.
From the description you give I believe the main motor is running when you get the F40 code so the thermal fuse and main control are most likely okay.
If there is no voltage to the motor control then the problem can be a fuse link that may be open preventing voltage from getting to the motor control.
This part is not the thermal fuse and is not listed in the parts diagram or even shown on the wiring diagram. The fuse link is most likely the cause of your troubles. If the inline fuse link is open you will have to replace the entire wire harness. The inline fuse link is not available as a separate part.
I would recommend a technician replace the harness.
The best move now is to check voltage to the motor control while trying to run the dryer. Use extreme caution. Do this if your comfortable with your do-it-yourself abilities