Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Watir Powered By Selenium!
This README is for people interested in writing code for Watir or gems in the Watir ecosystem that leverage private-api Watir code.
For our users, everything you'll need is on the Watir website: examples, news, guides, additional resources, support information and more.
When developing a gem intended to be used with Watir, you can run your code with WatirSpec to make sure that requiring your code does not break something else in Watir.
First, add WatirSpec Rake tasks to your gem:
# Rakefile
require 'watirspec/rake_tasks'
WatirSpec::RakeTasks.new
Second, initialize WatirSpec for your gem:
$ bundle exec rake watirspec:init
This command will walk you through how to customize your code.
The majority of element methods Watir provides is autogenerated from specifications. This is done by extracting the IDL parts from the spec and processing them with the WebIDL gem.
Generated elements are currently based on the following specifications:
To run:
$ bundle exec rake html:update
$ bundle exec rake svg:update
Watir specs are run with Github Actions.
Watir code is tested on Linux with latest versions of supported browsers and all active Ruby versions.
Watir uses yard-doctest to directly test our documentation examples.
mkdir ~/.yard
bundle exec yard config -a autoload_plugins yard-doctest
rake yard:doctest
Watir code is run through Coveralls to encourage PRs to ensure all paths in their code have tests associated with them.
Watir is using Rubocop to ensure a consistent style across the
code base. It is run with our minimum supported Ruby version (2.3)
We have some established exceptions at .rubocop.yml
that might need to be tweaked for new code submissions. This can be addressed in the PR as necessary.
Element specs are run with Selenium Statistics gem to verify that changes to the code do not dramatically decrease the performance based on wire calls.
See LICENSE for details
FAQs
Unknown package
We found that watir demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.