Updated:
- improved
CDP Control Panel
- improved
CBWG DevTools examples
- fixed a couple things
CDP Control Panel
1. Run the example CDP_Control_Panel.pb.
2. Press the Select Browser button.
3. Select an available browser.
4. Press the Listen Port button.
5. Press the Connect DevTools button.
6. Right-mouse-click the Command List.
7. Select the Load Command List... option.
8. Select the file compile.json.
9. Right-mouse-click the Command List.
10. Select the Send All option.
11. On the webpage enter jhpjhp in the Search field.
- Navigates to the PureBasic forum.
- Compiles some user-defined JavaScript (includes an event listener)
- Includes the compiled JavaScript into the PureBasic webpage.
- When jhpjhp is entered in the search field all the forum titles are changed to JHPJHP.
CBWG DevTools
1. Run the example CB_WebGadget_Detail.pb.
2. Select the Page.navigate ComboBox item.
3. Press the Send Command button.
4. Select the DOM.getNodeForLocation ComboBox item.
5. Manually scroll the webpage to any location.
6. Put the mouse-pointer over any hyperlink.
7. Press the Insert key to update parameters.
8. Press the Send Command button.
- Returns the Layout Metrics from the webpage.
- Finds the X/Y scroll position from the Layout Metrics.
- Returns the X/Y mouse location (Insert key Procedure).
- Calculates the combined scroll position and mouse location.
- Returns the Node ID under the mouse pointer using the calculation.
- Using the returned Node ID extracts the outer HTML associated to the node.
