selenium-session-client
v1.0.3
Published
Selenium session client, selenium webdriver (for selenium 4), read the cookies information from the session server and apply it to the selenium session.
Downloads
28
Readme
Javascript client
To install run:
npm install selenium-session-client
Following is a code example to integrate it into your Javascript Selenium tests:
import { Builder } from 'selenium-webdriver';
import chrome from 'selenium-webdriver/chrome.js';
import * as seleniumSessionClient from 'selenium-session-client';
let service = new chrome.ServiceBuilder('./chromedriver').build();
chrome.setDefaultService(service);
let driver = new Builder().forBrowser('chrome').build();
await seleniumSessionClient.initSession(driver, ['github']);
await driver.get('https://github.com');