{"id":20955457,"url":"https://github.com/combodo/chrome-mink-driver","last_synced_at":"2026-04-21T08:04:57.037Z","repository":{"id":110135982,"uuid":"201049576","full_name":"Combodo/chrome-mink-driver","owner":"Combodo","description":"A clone of https://gitlab.com/DMore/chrome-mink-driver for fixing Chrome connection problem","archived":false,"fork":false,"pushed_at":"2019-08-07T12:59:42.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-19T23:34:53.866Z","etag":null,"topics":["chrome","ci"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Combodo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2019-08-07T12:50:06.000Z","updated_at":"2024-09-02T10:19:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6ea8a22-bb9e-4971-b418-1e8de9cd368f","html_url":"https://github.com/Combodo/chrome-mink-driver","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2Fchrome-mink-driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2Fchrome-mink-driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2Fchrome-mink-driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Combodo%2Fchrome-mink-driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Combodo","download_url":"https://codeload.github.com/Combodo/chrome-mink-driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243351862,"owners_count":20276911,"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":["chrome","ci"],"created_at":"2024-11-19T01:19:22.245Z","updated_at":"2025-12-26T08:04:46.097Z","avatar_url":"https://github.com/Combodo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Chrome Mink Driver\n==================\n\nMink driver for controlling chrome without the overhead of selenium.\n\nIt communicates directly with chrome over HTTP and WebSockets, which allows it to work at least twice as fast as chrome with selenium.\n\nFor chrome 59+ it supports headless mode, eliminating the need to install a display server, and the overhead that comes with it.\n\nThis driver is tested and benchmarked against a behat suite of 1800 scenarios and 19000 steps. It can successfully run it in less than 18 minutes with chrome 60 headless.\n\nThe same suite running against chrome 58 with xvfb and selenium takes ~60 minutes.\n\n## Installation:\n\n```bash\ncomposer require dmore/chrome-mink-driver\n```\n\n## Requirements:\n\n* Google chrome or chromium running with remote debugging\n\nExample:\n\n```bash\ngoogle-chrome-stable --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222\n```\n\nor headless (59+):\n\n```bash\ngoogle-chrome-unstable --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222\n```\n\nThe official docker image includes chrome 60 running headless.\n\nSee https://gitlab.com/DMore/behat-chrome-skeleton for a fully working example.\n\n## Usage:\n\n```php\nuse Behat\\Mink\\Mink;\nuse Behat\\Mink\\Session;\nuse DMore\\ChromeDriver\\ChromeDriver;\n\n$mink = new Mink(array(\n    'browser' =\u003e new Session(new ChromeDriver('http://localhost:9222', null, 'http://www.google.com'))\n));\n\n```\n\nSince Chrome 62+ there is the experimental option to allow file downloads which can be triggered with options being\npassed to the ChromeDriver\n\n| Option           | Value                                        |\n|------------------|----------------------------------------------|\n| downloadBehavior | allow, default, deny                         |\n| downloadPath     | e.g. /tmp/ (/tmp/ is the default             |\n\nUsage:\n\n```php\nuse Behat\\Mink\\Mink;\nuse Behat\\Mink\\Session;\nuse DMore\\ChromeDriver\\ChromeDriver;\n\nuse Selenium\\Client as SeleniumClient;\n\n$mink = new Mink(array(\n    'chrome' =\u003e new Session(new ChromeDriver('http://localhost:9222', null, 'http://www.google.com', ['downloadBehavior' =\u003e 'allow', 'downloadPath' =\u003e '/tmp/'])),\n));\n\n```\n\nBesides the above mentioned download options the following options can be provided\n\n| Option           | Value               | Description                               |\n|------------------|---------------------|-------------------------------------------|\n| socketTimeout    | int, default: 10    | Connection timeout in seconds             |\n| domWaitTimeout   | int, default: 3000  | DOM ready waiting timeout in milliseconds |\n\n## Rendering PDF and Screenshots\n\nDespite the Mink functionality the driver supports printing PDF pages or capturing a screenshot.\n\nUsage:\n\n```php\nuse Behat\\Mink\\Mink;\nuse Behat\\Mink\\Session;\nuse DMore\\ChromeDriver\\ChromeDriver;\n\n$mink = new Mink(array(\n    'browser' =\u003e new Session(new ChromeDriver('http://localhost:9222', null, 'http://www.google.com'))\n));\n\n// set the default session name\n$mink-\u003esetDefaultSessionName('browser');\n\n// visit a page\n$mink-\u003egetSession()-\u003evisit('https://gitlab.com/DMore/chrome-mink-driver/blob/master/README.md');\n\n/** @var ChromeDriver $driver */\n$driver = $mink-\u003egetSession()-\u003egetDriver();\n\n$driver-\u003eprintToPdf('/tmp/readme.pdf');\n```\n\nThe available options are documented here: https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF\n\nYou can capture a screenshot with the `captueScreenshot` method. Options are documented here.\n\nPlease note, it is recommended to start Chrome with the disable-extensions flag like:\n\n```bash\ngoogle-chrome-stable --disable-gpu --headless --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --window-size=\"1920,1080\" --disable-extensions\n```\n\n## Behat\n\nSee [the behat extension](https://gitlab.com/DMore/behat-chrome-extension) if you want to use this driver with behat.\n\n## Contributing\n\nYou are encouraged to fork this repository and contribute your own improvements.\n\nSee [the contribution guide](CONTRIBUTING.md) for instructions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombodo%2Fchrome-mink-driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcombodo%2Fchrome-mink-driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcombodo%2Fchrome-mink-driver/lists"}