Updated:
- renamed CE_WebGadget_DevTools_Detail.pb to CE_WebGadget_DevTools_Detail_JS.pb
- added CE_WebGadget_DevTools_Detail.pb
- various minor improvements
Originally, JavaScript was the default method used to connect PureBasic to the DevTools Protocol; see examples ending in JS.
It's worth noting that while returned data can be displayed, it cannot be assign to a variable.
The new examples use only PureBasic script to connect to the DevTools Protocol; returned data can be displayed and/or assigned to a variable.
This was Part One of a major update, and with the recent changes it should now be easier to use the CEWG framework.
Full control over the Chromium Edge browser (embedded or otherwise) is demonstrated with the included examples.
Last edited by JHPJHP on Thu May 11, 2023 8:24 pm, edited 2 times in total.
Updated:
- rename framework to Chromium Browser WebGadget
- added option to use use either Edge or Chrome browser
- added Google Chrome option to standalone tool
- fixed a bug that affected only foreign language browsers
This was Part Two of a major update, and with the recent changes it should now be easier to use the CBWG framework.
To use Google Chrome instead of Microsoft Edge just set the Constant #CB_WebGadget_Browser_Override = "chrome" at the top of your program, before the IncludeFile; see any of the examples for location of framework Constants.
Last edited by JHPJHP on Thu Jun 30, 2022 12:01 am, edited 1 time in total.
ricardo wrote:Do you have any example (not neccessary headless) with filling and submiting a form?
Currently there are no examples for filling-in and submitting a form, but with the existing examples it should be easy for you to figure out.
--------------------------------
Updated:
- improved CDP_Remote.pb
- various name changes
CDP_Remote.pb 1. Added context menu. 2. Added transparency when window is moved; right-click to hold transparency. 3. Added Base64 to PB Image Procedure for capturing screenshot; also works in Headless Mode.
Updated:
- improved CDP_Control_Panel.pb
- some name changes
Instead of listing all improvements, I'll just provide the following instructions to help demonstrate some of the new features.
- tool now supports Opera, Chrome and Edge browsers
Send DevTools Command
Previously, an array was used to send multiple commands, but it posed limitations when sending commands that were in direct response to data received from previously sent commands.
Updated (CDP Control Panel):
- added Command Queue
- added Command Delay
- added user-defined CLS files
- various other improvements
Command Queue
Provides better control over sending multiple Commands.
Command Delay
Provides a user-defined delay between Commands.
Delay occurs after a command has been executed and before the next command is called.
Delay is ignored for a single command or the last item in a command set.
User-Defined CLS File (per browser)
Remove leading underscore from file to override default settings.
Last edited by JHPJHP on Fri Jul 01, 2022 6:53 am, edited 1 time in total.