When a potential difference is applied across the resistor, the path of an electron in the resistor is
Zig zag
When a potential difference is applied across a conductor, the electrons in the conductor do not move in a steady straight line path. Their movement is zig-zag but collectively they can be viewed as moving forward in a conductor.