Recording online games is straightforward with the right software. A simple option is a screen recorder like HyperCam 2.
For the best results with crisp HD graphics, though, Fraps is recommended. It records smoothly and offers excellent frame-rate capture.