Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
chromecast-webdriver-server
Advanced tools
A WebDriver server that pushes URLs to Chromecast, built on generic-webdriver-server.
A WebDriver server for Chromecast, implementing the subset of the WebDriver protocol necessary for Karma. Add Chromecast to your Selenium grid!
Part of the Generic WebDriver Server family.
npm install --save-dev generic-webdriver-server chromecast-webdriver-server
First, please refer to the "Setup" doc for Generic WebDriver Server. That will explain how to set up Selenium to talk to Generic WebDriver Servers, as well as how to set server parameters.
In the command-line for the Selenium node, set the following Java system properties:
genericwebdriver.browser.name
: We recommend the value "chromecast". See
also notes in the "Setup" doc.genericwebdriver.backend.exe
: The path to the executable, such as
node_modules/chromecast-webdriver-server/chromecast-webdriver-server.js
genericwebdriver.backend.params.hostname
: The hostname or IP address of the
Chromecast device, with optional port number. If omitted, this must be
provided in the client's desired capabilities instead. (See below.)This backend supports the following parameters:
hostname
: (required) The hostname or IP address of the Chromecast
device, with optional port number.receiver-app-id
: The receiver app ID to load, in case you want to host
your own copy. (See also
receiver-deployment.md)redirect
: Use a redirect strategy instead of an iframe; requires the Cast
SDK to be loaded at the destination URL. Use this for Shaka Player testing.idle-timeout-seconds
: The timeout for idle sessions, after which they will
be closed.connection-timeout-seconds
: The connection timeout for the Chromecast,
after which the corresponding WebDriver operation will fail.Deploying your own copy of the Chromecast receiver is completely optional. Doing so would allow you to:
Unless you need one of these things, we recommend using the default receiver app ID, which points to a copy served by github.io.
To learn how to deploy your own copy of the Chromecast Receiver, see receiver-deployment.md for details.
See how-it-works.md for details.
See tunneling.md for details.
In addition to running a Chromecast node in Selenium, this package offers a CLI
for directing a Chromecast to a specific URL. For example, if installed
globally with npm install -g chromecast-webdriver-server
:
chromecast-webdriver-cli --hostname=192.168.1.42 \
--url=https://shaka-player-demo.appspot.com/demo/
We show an arbitrary URL on the device by embedding it into an iframe in our
Chromecast receiver app. However, sites can prevent iframe-embedding with the
X-Frame-Options
header.
Though this should not be an issue for a test runner, this may affect other URLs. Unfortunately, there is no way for the receiver app to detect when this has happened. See: https://github.com/shaka-project/generic-webdriver-server/issues/8
FAQs
A WebDriver server that pushes URLs to Chromecast, built on generic-webdriver-server.
The npm package chromecast-webdriver-server receives a total of 2 weekly downloads. As such, chromecast-webdriver-server popularity was classified as not popular.
We found that chromecast-webdriver-server demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.