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]);