In this paper we report on the fabrication and testing of a novel concept of sealed electrochemical microcell for in situ soft X-ray microspectroscopy in transmission, dedicated for nonvacuum compatible electrolytes. The microcell, fabricated using ultraviolet lithography, at variance with previous versions of electrochemical wet cells, that featured an optical window glued on top of the electrode system and a very limited electrolyte volume, the device presented here is a single solid block based around a microfabricated channel with fixed optical windows and apt for microfluidic work. Moreover, this cell allows to employ an advanced electrodic geometry developed in our group - so far used only in open electrochemical cells for work with vacuum-compatible electrolytes - also with low-vapor pressure liquids, possibly saturated with the required gases. The cell optimal electrode design allows three-electrode electrochemical control typical of traditional electrochemical experiments. The first electrochemical experiments with this new cell explore the electrochemical growth of a Co-polypyrrole, a composite electrocatalyst material with promising performance to replace the expensive Pt catalyst in fuel-cell oxygen electrodes. Morphological and chemical-state distributions of Co codeposited with polypyrrole has been followed as a function of time and position, yielding unprecedented information on the processes relevant to the synthesis of this catalyst.