New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

selenium-emulated_features

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selenium-emulated_features

  • 3.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

selenium-emulated_features

Adds HTTP status code and response headers emulation to Selenium drivers.

Latest release tested on OS X 10.12.3 with:

BrowserDriver
Chrome 60.0.3112.40ChromeDriver 2.30.477690
Safari 10.0.3built-in safaridriver
Firefox 54.0--
PhantomJS 2.2.1--

Note: Ensure Develop > Allow Remote Automation is enabled in Safari!

Installation

Install with Bundler by adding the following line to your Gemfile:

gem "selenium-emulated_features", "~> 3.0"

Or install via RubyGems:

% gem install selenium-emulated_features

Usage

require "selenium-webdriver"
require "selenium/emulated_features"

driver = Selenium::WebDriver.for(:firefox)
driver.navigate.to("https://github.com/non/existent")

driver.response_code    # => 404
driver.response_headers # => {...}

nil is returned if the URI is not reachable or an error occurs.

FAQs

Package last updated on 24 Jun 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc