compare-chromedp/

directory
v0.101.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: MIT

README

Rod comparison with chromedp

chromedp is one of the most popular drivers for Devtools Protocol.

To help developers who are familiar with chromedp to understand rod better we created side by side examples between rod and chromedp.

To run an example:

  1. clone rod
  2. cd to the folder of an example, such as cd lib/examples/compare-chromedp/click
  3. run go run .
rod chromedp Description
click click use a selector to click on an element
cookie cookie set a HTTP cookie on requests
emulate emulate emulate a specific device such as an iPhone
eval eval evaluate javascript and retrieve the result
headers headers set a HTTP header on requests
keys keys send key events to an element
logic logic more complex logic beyond simple actions
remote remote connect to an existing DevTools instance using a remote WebSocket URL
screenshot screenshot take a screenshot of a specific element and of the entire browser viewport
submit submit fill out and submit a form
text text extract text from a specific element
upload upload upload a file on a form
visible visible wait until an element is visible

Occasionally, some of these examples may break if the specific websites these examples use get updated. We suggest you create an issue.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL