Diagnosing power window problem

2006 Xterra. Driver’s side power window occasionally will not go up. Only happens when completely down. Want to find out if it’s the switch, motor or a different problem. I love the show. Keep it up. Thanks.

Seems like the window regulator, motor assembly is a common replacement item on these.