-
-
Notifications
You must be signed in to change notification settings - Fork 21
Getting Started
Andrés edited this page Feb 12, 2019
·
1 revision
To start using Wendigo for testing or browser automation. Make sure you've got NodeJS 8.0.0 or superior and npm installed in your system. You can check if they are installed and their versions with the following commands:
node -v
npm -v
You should install Wendigo in your npm project (usually as a dev dependency):
npm install --save-dev wendigo
After that, you can use it with your favorite test suite or standalone in a JavaScript file
const Wendigo = require('wendigo');
async function getMyPageHeader(){
const browser = Wendigo.createBrowser();
await browser.open("http://my-page");
return await browser.text("h1");
}
getMyPageHeader().then((text)=>{
console.log(text);
});
Remember to check the Documentation for the full API
If you find any problem, please check our Troubleshooting for solutions to the most common problems, or fill an issue if it appears to be a bug or lacking feature with Wendigo.