Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
This gem provides an adapter that allows Selenium-RC-based code to execute using Capybara instead. This is useful because:
Add this line to your application's Gemfile:
gem 'capybara-rc'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capybara-rc
require 'capybara/rc'
# If @browser was your Selenium-RC browser before …
@browser = Capybara::Rc::Adapter.new(Capybara.current_session)
The ideal with this adapter is that you'd be able to drop it in and run your
existing test suite with no changes. The reality is that you probably use some
features of Selenium-RC that can't be adapted to Capybara (get_eval
and the
Selenium-RC in-browser JavaScript API are likely sources of this).
In order to limit the changes you need to make to your test suite, the Adapter
class provides some lower-level translation methods:
capybara_find_by_locator(locator)
: returns a Capybara element corresponding
to the given Selenium-RC locator. You can use the Capybara API to do further
querying/testing on the returned element.capybara_has_no_locator?(locator)
: allows you to bypass Capybara's wait
when you are trying to test that something isn't present. Maps from a
Selenium-RC locator to the appropriate Capybara has_no_*
method
(has_no_css
, has_no_xpath
, etc.).capybara_has_locator?(locator)
: The positive version of the previous method.
Similarly maps to the appropriate Capybara has_*
method.Bug reports and pull requests are welcome on GitHub at https://github.com/cdd/capybara-rc.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that capybara-rc 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.