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:
- clone rod
- cd to the folder of an example, such as
cd lib/examples/compare-chromedp/click
- 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 |
---|---|
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Package main ...
|
Package main ... |
Click to show internal directories.
Click to hide internal directories.