Octo
A standalone wrapper for Selenium webdriver that provides extra utility actions for the driver.
Installing
npm install octo-driver --save-dev
Features
- Retry handling at the command level.
- Types with Typescript.
- Signaling across browsers.
- Async/Await.
Pre-requisites
It's important to know that Octo ONLY wraps the WebDriver instance portion of selenium-webdriver. This makes it so you can easily plug into any existing test runner or builder of your choosing.
; : WebDriver { const build = ; return build;} const driver = ;
Example
Extending a Page Object.
;;; public baseURL = envurlshomepage; public sitemap = home: '/' ; public DOM = wrapper: 'body' ; { superdriver; } public async : Promise<void> await super; await super; return;
Why Octo?
This project was heavily inspired from a blog post written by Uber called Rescued by Octopus. In this post they demonstrated the complex user scenarios and inner device communication that their test have to complete in order the confirm end-to-end app functionality. The name was taken from the project at Uber and made to solve similar issues using NodeJS while also adding extra utility.