{"id":13989948,"url":"https://github.com/testingbot/node-seleniumgrid","last_synced_at":"2025-05-13T20:30:35.696Z","repository":{"id":10454868,"uuid":"12625483","full_name":"testingbot/node-seleniumgrid","owner":"testingbot","description":"Selenium Hub/Grid built in nodeJS and used in production on TestingBot.com","archived":false,"fork":false,"pushed_at":"2015-11-29T09:23:53.000Z","size":44,"stargazers_count":35,"open_issues_count":0,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-23T02:19:53.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/testingbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-05T18:32:07.000Z","updated_at":"2023-06-23T11:41:17.000Z","dependencies_parsed_at":"2022-08-29T17:40:50.903Z","dependency_job_id":null,"html_url":"https://github.com/testingbot/node-seleniumgrid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Fnode-seleniumgrid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Fnode-seleniumgrid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Fnode-seleniumgrid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testingbot%2Fnode-seleniumgrid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testingbot","download_url":"https://codeload.github.com/testingbot/node-seleniumgrid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254020902,"owners_count":22000805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T13:02:11.615Z","updated_at":"2025-05-13T20:30:35.362Z","avatar_url":"https://github.com/testingbot.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"node-seleniumgrid\n=================\n\nSelenium Hub/Grid built in nodeJS and used in production on [TestingBot.com](http://testingbot.com).\n\nAt TestingBot we've been using this code for 11 months now, running on a single CPU server with the latest version of nodejs.\n\nWe built this to replace the Selenium grid functionality that comes with the default Selenium source code in Java.\nOne of the reasons we used nodeJS was because we wanted it to be easy to read and understand.\n\nWith this code, you can run a Selenium grid, point your own Selenium nodes to it and run tests against it.\nIt also comes with an option to use the TestingBot grid if a specific browser is not present on your grid.\nSo for example: you have 2 virtual machines with both Linux and Windows but you also want to run tests against Mac.\nBy using this grid, your tests will run on your own 2 virtual machines and use the TestingBot grid to run the tests on our Mac VMs.\n\nRequirements\n------------\n\nGeneral:\n\n* NodeJS, at least v0.10.0\n* npm\n\nUser Quick Start\n------------\n\n* sudo npm -g install node-seleniumgrid\n* node-seleniumgrid -k testingbot_key -s testingbot_secret\n\nYou now have a local Selenium grid running on port 4444.\nStart a Selenium node and point it to this grid, it should register to the grid.\nNow run a simple Selenium test against your new grid, depending on the capabilities you requested it should forward the test to your Selenium node.\n\n1. run `node-seleniumgrid`\n2. start a node `java -jar selenium-standalone.jar -role node -hub http://my-computer-ip:4444/grid/register`\n3. point your test to run on my-computer-ip port 4444:\n\n```ruby\nrequire \"rubygems\"\nrequire \"selenium-webdriver\" \nrequire \"selenium/client\"\n\ncaps = {\n  :browserName =\u003e \"firefox\",\n  :version =\u003e \"22\",\n  :platform =\u003e \"WINDOWS\"\n}\n\nurlhub = \"http://my-computer-ip:4444/wd/hub\"\nclient = Selenium::WebDriver::Remote::Http::Default.new\nclient.timeout = 120\n\n@webdriver = Selenium::WebDriver.for :remote, :url =\u003e urlhub, :desired_capabilities =\u003e caps, :http_client =\u003e client\n@webdriver.navigate.to \"https://www.google.com\"\nputs @webdriver.title\n@webdriver.quit\n```\n\nTroubleshooting\n------------\n\nIf you encounter problems setting this up, please open a ticket in the issues section.\n\nTests\n------------\n\nThere are tests included in this project, to run them, please use mocha:\n`mocha tests/*.js`\n\nContributing\n------------\nFork the project, make a change, and send a pull request!\n\nLicense\n------------\n\nLicensed under the Apache License, Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Fnode-seleniumgrid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestingbot%2Fnode-seleniumgrid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestingbot%2Fnode-seleniumgrid/lists"}