The first scheduled run of the X'Trapolis train on the Frankston line has been criticised as a desperate election stunt with Melbourne's newest and fastest train having to operate at a restricted speed because of fears it may be too fast for boom gates.

The train will travel to Frankston and back on Wednesday as a symbol of how much work the Napthine government has done to modernise the line, which was so unreliable four years ago some believe it cost Labor the election.

Minister for Transport Terry Mulder on one of the new X'Trapolis trains.

Then it will be taken out of service and stabled at Burnley for the rest of the day.

And the train will be set to run at a limited speed to avoid the danger of beating the boom gates at one of the line's 30 level crossings.