I think there is something better than the above hypothesis. If the creatures were living in the shallows then it is highly likely that they would encounter the ground beneath the water, more often than a fish in open water, they could then use it as a base from which to push from - this is the physical situation which led to strong fins/ limbs moving to the underside of the fish. This evolutionary process would have been accelerated if these particular fish ancestors of ours had started to venture out of the water for short periods of time. The evolution of lungs and strong limbs would have provided a positive feedback mechanism for each other, and if there was an abundant supply of food on the riverbank or shoreline then this too would accelerate the evolution of tetrapods from fish.
Nobody knows exactly how it happened. There is very little evidence of any of the transitions. Mainly because they were transitions and were superseded very quickly.
For this I can only point you towards
http://www.google.com.
(There are many scientific sites produced by a search from there.)
I think the evolution of five fingers, on all four limbs, is structural design. Physically, it is better to have five strengthened points rather than six, seven or eight unwieldy digits. Evolution and natural selection could do this in a few generations. At the moment, I can't think why five digits were not streamlined even more.
I must reaffirm that what I write here is only a rough guide and maybe not even a guide at all, but by analysing the situation I think we can get fairly close to the truth of the evolution of tetrapods from fish.
Here is the transcript of a programme I watched regarding this matter: