The robots are expensive, but the employers don't need to pay their salary every month or every week. I guess they will just do maintenance once a year, and the profit from machine is higher than the human employee.

I don't think they will be able to completely replace their human workforce with robots. May be they'll think about replacing half of the staff with them. And a normal employee costs the McDonalds around $15 per hour (that comes to around $45,000 per year). If a robot can replace 5 employees, it will save them $225,000.