Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
webdriver-reuse-session
Advanced tools
Manage Webdriver sessions and make sessions id's available for e.g. Protractor and other TDD and BBD tools
Manage Webdriver/Selenium/Chromedriver sessions and make sessions id's available for e.g. Protractor and other TDD and BBD tools.
Using this can take between 5-10 seconds of your start-up time, and sometimes even more. If you have an authentication step, then this can be added. I worked a case, where I could cut off 30 seconds of overhead, every time I wanted to run a 5 seconds test.
Resist the temptation of using ts-node, unless you are doing it for the sake of debugging. Have a terminal running next to your other terminal with 'tsc -w' This is so much faster
If you ...
Make an issue or a pull request or reach out to me via email - andreas@markussen.dk .
npm install webdriver-reuse-session
npm webdriver-manager start
webdriver-reuse-session
Get the SessionID
const sessionId = fs.readFileSync('.seleniumSessionId.dat')
Use the SessionID
/** in your protractor.conf.js or similar config object*/
directConnect: undefined, // can be omitted, but just to show that directConnnect must not be set
seleniumAddress: 'http://localhost:4444/wd/hub',
seleniumSessionId: sessionIdFromFile,
This is my first package on NPMJS, so feel free to give me feedback and log issues on Github
With wishes of faster testing for all of us,
Andreas
FAQs
Manage Webdriver sessions and make sessions id's available for e.g. Protractor and other TDD and BBD tools
We found that webdriver-reuse-session demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.