Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
CEF has changed a few things about frame handling lately. There are new events and methods to know when a frame is valid, created, attached, detached, etc.
I would suggest that you use TChromiumCore.ExecuteJavaScript instead of using TChromiumCore.Browser.MainFrame.ExecuteJavaScript because it checks if the browser and frame are valid before executing the JS code.