Electroretinography measures the electrical responses of retinal cells to light stimulation, providing objective information about retinal function, especially when the retina cannot be visualized clearly or prior to cataract surgery to confirm visual potential. Together, these tests help diagnose retinal disease, guide treatment decisions, and assess prognosis for vision.