When crossing railroad tracks, you should:

When crossing railroad tracks during the on-road driving skills test, you must not stop, change gears, pass another vehicle, or change lanes while any part of your vehicle is in the railroad crossing.
DMV Writen Test