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

Genie script snippets

ISI Markets

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

JavaScript

VS Code Genie snippets


This extension contains code snippets for JavaScript framework Genie based on Casper.

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 Genie 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();
evalu→ evaluate function inside browser page context this.evaluate(function(param) {}, variableParam);
genie→ Initializes copperfield empty script
thenO→ Performs open command this.thenOpen();
click→ Performs waitAndClick this.waitAndClick(ex(""));
waitForSel→ performs waitForSelector this.waitForSelector(ex("xpath_selector"));
then→ performs then step this.then(function(){ body here });
this.wai→ waits for specific time this.wait(timeToWait);
this.post→ sends post request this.open("url", options ={headers:{}, data: {}, method:"POST"})
thenE→ performs thenEvaluate() this.thenEvaluate(function(){});
+eval→ performs then with evaluate inside this.then(function() { var x = this.evaluate(function(){return sth;})});
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft