You can't charge a capacitor to any meaningful extent this way. The reason is those unconnected nodes at the end.
Assume everything in the circuit starts out neutral. To put a charge on the capacitor, each battery would have to put an equal and opposite charge on the end nodes. That is the only way to conserve charge.
So how much charge can the battery shove onto the unconnected nodes? This is also a question about capacitance: how much charge $Q$ can a voltage $V$ put on the unconnected node? The answer is $CV$ where $C$ is the capacitance of the unconnected node and the wire leading, towards it. Essentially the wire and node act as one plate of an ad-hoc capacitor, wile other conductive objects (the ground, and/or the other terminal) act as the second plate. [1]
Remember that to make a capacitor with a high capacitance, the plates need to be close together and have a large area. Wires tend to have a small area, and let's assume the battery terminal is not especially close to any of these other conductive objects. So the ad-hoc capacitor scores badly on both counts. It is going to have a very small capacitance. The charges on the "real" capacitor and the ad-hoc capacitor are always equal, so will be limited by the charge on you can get onto the ad-hoc capacitor. That will prevent the real capacitor from fully charging... at least, assuming the "real" capacitor has a greater capacitance than the ad-hoc one. For example, if the real capacitor is 1000 times bigger than the ad-hoc capacitor, it will only get charged to 0.1% of full.
In many circuits, especially ones where the conductors are close together, like integrated circuits or multilayer PCBs, it is necessary to take this kind of capacitance into account. But if you are building the circuit out of human-scale wires and alligator clips, it isn't going to be significant, and the capacitor can be assumed not to charge until you actually connect those two end nodes.
[1] An object also has an intrinsic capacitance even if nothing is anywhere nearby. In practice, there's probably something nearby.