Updated:
➤ Added
Domain Event ID Enumerations.
➤ Added 4 additional Command Procedures: Total 84.
•
Runtime_AddBinding
• Runtime_AwaitPromise
• Runtime_CallFunctionOn
• Runtime_RemoveBinding
➤ Various improvements to most examples.
➤ Minor improvements to the framework.
➤ Updated documentation.
➤ Updated
standalone Mozilla Firefox examples.
Domain Event ID Enumerations
• When executing a CDP method a predefined Event ID can be used; Constant names match the various methods.
• Enumerations use Step 100 so that the same method can be called multiple times (+ 1, + 2, etc.) and still have a unique identifier.
• All example commands have been updated to use the new Constants.
The following is just one of the 10 Domains:
Code: Select all
Enumeration PAGE_USER_EVENTS 170000 Step 100
#UE_Page_AddScriptToEvaluateOnNewDocument
#UE_Page_BringToFront
#UE_Page_CaptureScreenshot
#UE_Page_Close
#UE_Page_CreateIsolatedWorld
#UE_Page_Enable
#UE_Page_GetLayoutMetrics
#UE_Page_GetNavigationHistory
#UE_Page_HandleJavaScriptDialog
#UE_Page_NavigateToHistoryEntry
#UE_Page_Navigate
#UE_Page_PrintToPDF
#UE_Page_Reload
#UE_Page_RemoveScriptToEvaluateOnNewDocument
#UE_Page_ResetNavigationHistory
#UE_Page_ScreencastFrameAck
#UE_Page_SetBypassCSP
#UE_Page_SetDocumentContent
#UE_Page_SetInterceptFileChooserDialog
#UE_Page_StartScreencast
#UE_Page_StopLoading
#UE_Page_StopScreencast
EndEnumeration
Runtime_AddBinding
• Previously I was using the console to pass data from the browser, not knowing that there already existed a method for that.
• All related examples have been updated to use the new method to return data from the browser to PureBasic.
Mozilla Firefox
• See the following: \CDP Standalone\Mozilla Firefox\Remote Simple\references\readme.txt
• In recent Firefox versions, CDP is no longer just disabled, it’s being completely removed from the codebase.
The difference between stupidity and genius is that genius has its limits.
~ Albert Einstein