{"id":33073875,"url":"https://github.com/bravostudiodev/bravo-grid","last_synced_at":"2025-11-19T04:01:54.487Z","repository":{"id":215206010,"uuid":"82550216","full_name":"bravostudiodev/bravo-grid","owner":"bravostudiodev","description":"Selenium grid docker images with extensions for sikuli and file transfer","archived":false,"fork":false,"pushed_at":"2018-02-28T12:56:04.000Z","size":121,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-01-25T05:11:38.029Z","etag":null,"topics":["docker-selenium","selenium","selenium-grid","sikuli"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bravostudiodev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-02-20T11:23:28.000Z","updated_at":"2024-04-15T06:31:04.428Z","dependencies_parsed_at":null,"dependency_job_id":"d55dbc29-dea1-4701-9809-741ffa92f98d","html_url":"https://github.com/bravostudiodev/bravo-grid","commit_stats":null,"previous_names":["bravostudiodev/bravo-grid"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bravostudiodev/bravo-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravostudiodev%2Fbravo-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravostudiodev%2Fbravo-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravostudiodev%2Fbravo-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravostudiodev%2Fbravo-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bravostudiodev","download_url":"https://codeload.github.com/bravostudiodev/bravo-grid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bravostudiodev%2Fbravo-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285181688,"owners_count":27128334,"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","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["docker-selenium","selenium","selenium-grid","sikuli"],"created_at":"2025-11-14T10:00:27.823Z","updated_at":"2025-11-19T04:01:54.472Z","avatar_url":"https://github.com/bravostudiodev.png","language":"Java","funding_links":[],"categories":["Resources"],"sub_categories":["Containers"],"readme":"# bravo-grid\nThis project adds selenium grid extension to the official [docker-selenium](https://github.com/SeleniumHQ/docker-selenium) images to enable remote Sikuli operations and files transfer with grid nodes. Extensions are based on great project [Selenium Grid Extensions](https://github.com/sterodium/selenium-grid-extensions).\n\nImages included:\n\n- __bravo/grid/hub__: Image for running a Selenium Grid Hub\n- __bravo/grid/node-chrome__: Selenium node with Chrome installed, needs to be connected to a Selenium Grid Hub\n- __bravo/grid/node-firefox__: Selenium node with Firefox installed, needs to be connected to a Selenium Grid Hub\n- __bravo/grid/node-chrome-debug__: Selenium node with Chrome installed and runs a VNC server, needs to be connected to a Selenium Grid Hub\n- __bravo/grid/node-firefox-debug__: Selenium node with Firefox installed and runs a VNC server, needs to be connected to a Selenium Grid Hub\n\n## Building the images\n```bash\nbuild.sh\n```\n## Running the images\n```bash\nbravogridctl.sh start\n```\nTo stop running container use command:\n```bash\nbravogridctl.sh start\n```\n\n## Using extensions\nExtension proxy objects are instantiated through io.sterodium.rmi.protocol.client.RemoteNavigator as follows:\n\n```java\nString urlHub = \"http://192.168.99.100:4444/wd/hub\"\nRemoteWebDriver driver = new RemoteWebDriver(urlHub, caps);\nURL urlHubParsed = new URL(urlHub);\nString driverSessionId = driver.getSessionId().toString();\nString EXTENSION_PATH_FMT = \"/grid/admin/HubRequestsProxyingServlet/session/%s/BravoExtensionServlet\"\nString extensionPath = String.format(EXTENSION_PATH_FMT, driverSessionId);\nRemoteNavigator = new RemoteNavigator(urlHubParsed.getHost(), urlHubParsed.getPort(), extensionPath);\nSikuliScreen screen = navigator.createProxy(SikuliScreen.class, \"screen\");  \nFileTransfer files = navigator.createProxy(FileTransfer.class, \"files\");\n```\nTo remotelly control sikuli, first add base64 encoded png image content as sikuli target with choosen name and then search this target via sikuli using same name.\n\n```java\nString b64PNG = DatatypeConverter.printBase64Binary(Files.readAllBytes(pngPath));\nStrign myTargetName = \"SomeUniqueName\";\nscreen.addTarget(myTargetName, b64PNG);\nScreenRegion target = screen.find(myTargetName);\ntarget.click()\n```\nTo upload file call method saveFile on FileTransfer object, eg:\n\n```java\nString remotePath = files.saveFile(\".html\", \"/path/to/test.hml\");\ndriver.get(\"file://\" + remotePath);\n\n```\n\n### Debugging\nInstall RealVNC or any other VNC client, and connect to 127.0.0.1:6000 (Chrome) or 127.0.0.1:7000 (Firefox)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravostudiodev%2Fbravo-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbravostudiodev%2Fbravo-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbravostudiodev%2Fbravo-grid/lists"}