Stopped in rinse cycle

My washing machine stopped during the rinse cycle. This happened a few months ago but went away. It is full of water but won’t drain or spin. It has power. I’m a tinkerer but new at washing machine repair. I’m leaning toward the lid switch or timer. Any ideas? How to test?

Thanks in advance.

Nevermind, it was the switch. Got it.