I'm amazed that the scientific community of the time happened to have some kind of equipment to measure this phenomenon... all right before the time of the American Civil War.
Maxwell's A Dynamical Theory of the Electromagnetic Field was published in 1865 - it's mostly your perception of the history of the relevant science that might be a few decades off.
I'm also amazed
Which is wonderful! So were 19th century scientists, though, and they also figured it out.