Skip to content
/ zafe Public

A helper library to safely operate Selenium automation

Notifications You must be signed in to change notification settings

mapfap/zafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zafe

npm package build succeeded Test passing

A helper library to safely operate Selenium automation

How to install

yarn add zafe

How to use

import { Builder } from "selenium-webdriver";

const driver = await new Builder()
    .forBrowser("chrome")
    .build();

const zafe = new Zafe(driver);

await driver.get(`https://www.example.com`);
await zafe.type(By.xpath(`//input[@name="id"]`), `user001`);
await zafe.click(By.xpath(`//*[contains(text(), "Login")]`));

Initiate Zafe with options

const options = {
    shouldLogTraces: true,
    shouldCaptureOnSuccess: false,
    screenCaptureFolder: "./output/screenshots",
    shouldLogTraces: true
}
const zafe = new Zafe(driver, options);

About

A helper library to safely operate Selenium automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published