Update to CEF 3.3163.1670.g934eaba
Posted: Sun Sep 24, 2017 11:03 am
Hi,
I updated CEF4Delphi to CEF 3.3163.1670.g934eaba and added the code from crystalxp to get the HTML source from frames.
Now there are 3 overloaded versions of TChromium.RetrieveHTML.
The second one needs an ICefFrame instance
The third one needs a frame identifier.
The frame names can be obtained with TChromium.GetFrameNames
The frame identifiers can be obtained with TChromium.GetFrameIdentifiers
TChromium.FrameCount gives you the total number of frames in the page.
I've added a couple of context menu options to the MiniBroser demo with examples to get the frame names and frame identifiers.
Take a look at TMiniBrowserFrm.CopyFramesIDsMsg and TMiniBrowserFrm.CopyFramesNamesMsg
The new CEF3 binaries are these :
32bit -> http://opensource.spotify.com/cefbuilds ... 32.tar.bz2
64bit -> http://opensource.spotify.com/cefbuilds ... 64.tar.bz2
I updated CEF4Delphi to CEF 3.3163.1670.g934eaba and added the code from crystalxp to get the HTML source from frames.
Now there are 3 overloaded versions of TChromium.RetrieveHTML.
- RetrieveHTML(const aFrameName : ustring = '')
- RetrieveHTML(const aFrame : ICefFrame)
- RetrieveHTML(const aFrameIdentifier : int64)
The second one needs an ICefFrame instance
The third one needs a frame identifier.
The frame names can be obtained with TChromium.GetFrameNames
The frame identifiers can be obtained with TChromium.GetFrameIdentifiers
TChromium.FrameCount gives you the total number of frames in the page.
I've added a couple of context menu options to the MiniBroser demo with examples to get the frame names and frame identifiers.
Take a look at TMiniBrowserFrm.CopyFramesIDsMsg and TMiniBrowserFrm.CopyFramesNamesMsg
The new CEF3 binaries are these :
32bit -> http://opensource.spotify.com/cefbuilds ... 32.tar.bz2
64bit -> http://opensource.spotify.com/cefbuilds ... 64.tar.bz2