Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Copperfield script snippetsNew to Visual Studio Code? Get it now.
Copperfield script snippets

Copperfield script snippets

ISI Markets

|
504 installs
| (0) | Free
Code snippets for Copperfield framework based on Puppeteer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JavaScript

VS Code Copperfield snippets


This extension contains code snippets for JavaScript framework Copperfield based on Puppteer.

Installation

In order to install an extension you need to launch the Command Pallete (Ctrl + Shift + P or Cmd + Shift + P) and type Extensions. There you have either the option to show the already installed snippets or install new ones. Search for Copperfield snippets and install it.

Supported languages (file extensions)

  • JavaScript (.js)

Snippets

Below is a list of all available snippets and the triggers of each one. The ⇥ means the TAB key.

Methods

Trigger Content
auth→ authenticate page with basic authentication await this.authenticate();
eval→ evaluate function inside browser page context await this.evaluate(function(param) {}, variableParam);
init→ Initializes copperfield empty script
ope→ Performs open command await this.open();
waitAn→ Performs waitAndClick await this.waitAndClick("selector"[, other optional params]);
waitFor→ performs waitForSelector await this.waitForSelector("selector", "timeout");
sel→ performs waitAndSelect await this.waitAndSelect(${1:selector}[, optionValue1, optionValue2, ..., optionValue3]);
wait→ waits for specific time await this.wait(timeToWait);
post→ sends post request await this.sendPost("url", options ={}, data ={})
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft