Skip to content

eliastor/terraform-provider-chromedp

Repository files navigation

Terraform Provider ChromeDP

This providers allows you to use chromedp in terraform in form of recipes.

Requirements

Building The Provider

  1. Clone the repository
  2. Enter the repository directory
  3. Build the provider using the Go install command:
go install

Using the provider

Please refer do examples/.

Developing the Provider

If you wish to work on the provider, you'll first need Go installed on your machine (see Requirements above).

To compile the provider, run go install. This will build the provider and put the provider binary in the $GOPATH/bin directory.

To use provider in sample terraform code ~/.terraformrc must be edited:

provider_installation {

  dev_overrides {
      "hashicorp.com/eliastor/chromedp" = "<your go bin path>"
  }

  direct {}
}

To generate or update documentation, run go generate or make doc-gen.

In order to run the full suite of Acceptance tests, run make test.

make test

Supported actions

  • Navigate
  • Wait_visible
  • Click
  • Value (getting content of forms, inputs, textareas, selects, or any other element with a '.value' field.)
  • Text (getting text content of the element)
  • Focus
  • Cookies (setting cookies)
  • Screenshots
  • Text into fields

Roadmap

  • browserless.io support (untested, but should work)
  • Attribute with cookie
  • Support of selects and other form elements
  • Downloads
  • Uploads
  • Send keys
  • Submit
  • Emulate different viewports