{"id":16252368,"url":"https://github.com/remarkablemark/webdriverjs-recipes","last_synced_at":"2025-03-19T20:31:18.614Z","repository":{"id":10525221,"uuid":"66052365","full_name":"remarkablemark/webdriverjs-recipes","owner":"remarkablemark","description":"WebDriverJS Recipes (Selenium for Node.js)","archived":false,"fork":false,"pushed_at":"2024-05-22T22:28:31.000Z","size":996,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-22T23:32:06.980Z","etag":null,"topics":["chrome","chromedriver","firefox","javascript","nodejs","selenium","selenium-webdriver","webdriver","webdriverjs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/remarkablemark.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["remarkablemark"],"patreon":"remarkablemark","open_collective":null,"ko_fi":"remarkablemark","tidelift":null,"community_bridge":null,"liberapay":"remarkablemark","issuehunt":null,"otechie":null,"custom":["https://b.remarkabl.org/teespring"]}},"created_at":"2016-08-19T04:23:05.000Z","updated_at":"2024-05-28T02:16:50.588Z","dependencies_parsed_at":"2024-03-28T23:35:56.099Z","dependency_job_id":"c7654c30-a6f7-4788-8fa5-600cdc369553","html_url":"https://github.com/remarkablemark/webdriverjs-recipes","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/remarkablemark%2Fwebdriverjs-recipes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fwebdriverjs-recipes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fwebdriverjs-recipes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/remarkablemark%2Fwebdriverjs-recipes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/remarkablemark","download_url":"https://codeload.github.com/remarkablemark/webdriverjs-recipes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244501314,"owners_count":20462839,"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","chromedriver","firefox","javascript","nodejs","selenium","selenium-webdriver","webdriver","webdriverjs"],"created_at":"2024-10-10T15:13:25.548Z","updated_at":"2025-03-19T20:31:17.885Z","avatar_url":"https://github.com/remarkablemark.png","language":"JavaScript","readme":"# WebDriverJS Recipes\n\n[![build](https://github.com/remarkablemark/webdriverjs-recipes/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablemark/webdriverjs-recipes/actions/workflows/build.yml)\n\nRecipes and examples of how to perform automation with [WebDriverJS](https://github.com/SeleniumHQ/selenium/wiki/WebDriverJs) ([Selenium](https://www.selenium.dev/) for [Node.js](https://nodejs.org/)).\n\nSee [API documentation](https://www.selenium.dev/selenium/docs/api/javascript/index.html) for more information on [selenium-webdriver](https://www.npmjs.com/package/selenium-webdriver).\n\n## Prerequisites\n\n[Node.js](https://nodejs.org/en/download/):\n\n```sh\nbrew install node\n```\n\n[nvm](https://github.com/nvm-sh/nvm#install--update-script):\n\n```sh\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash\n```\n\n[Yarn 1](https://classic.yarnpkg.com/en/docs/install/#mac-stable):\n\n```sh\nbrew install yarn\n```\n\n[Chrome](https://www.google.com/chrome/):\n\n```sh\nbrew cask install google-chrome\n```\n\n[ChromeDriver](https://chromedriver.chromium.org/downloads):\n\n```sh\nbrew install chromedriver\n```\n\n[Firefox](https://www.mozilla.org/en-US/firefox/new/):\n\n```sh\nbrew cask install firefox\n```\n\n[geckodriver](https://github.com/mozilla/geckodriver/releases):\n\n```sh\nbrew cask install geckodriver\n```\n\n## Install\n\nClone the repository:\n\n```sh\ngit clone https://github.com/remarkablemark/webdriverjs-recipes.git \u0026\u0026 cd webdriverjs-recipes\n```\n\nUse Node.js version:\n\n```sh\nnvm use\n```\n\nInstall the dependencies:\n\n```sh\nyarn\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `yarn async-await`\n\nAutomates a Firefox browser using [async/await](https://javascript.info/async-await). See [article](https://b.remarkabl.org/34tlEFy).\n\n### `yarn build`\n\nBuilds driver with Firefox browser.\n\nTo build driver with Chrome browser:\n\n```sh\nSELENIUM_BROWSER=chrome yarn build\n```\n\n### `yarn chrome-profile`\n\nLaunches Chrome profile page. See [article](https://b.remarkabl.org/2PcaLmy).\n\nThe profile data is saved at `./my_profile_path/`.\n\n### `yarn cucumber`\n\nRuns browser automation test written in [Cucumber](https://github.com/cucumber/cucumber-js). See [artcile](https://b.remarkabl.org/34pXj3b).\n\n### `yarn find`\n\nFinds elements. See [article](https://b.remarkabl.org/3dcXiCT).\n\n### `yarn jest`\n\nRuns browser automation test with [Jest](https://jestjs.io/).\n\n### `yarn mocha`\n\nRuns browser automation test with [Mocha](https://mochajs.org/). See [article](https://b.remarkabl.org/2bbW9M2).\n\n### `yarn resources`\n\nGets the browser resource file URL's of a webpage. See [article](https://b.remarkabl.org/39OCH7f).\n\n### `yarn screenshot`\n\nTakes and saves a screenshot to `./screenshot.png`.\n\n### `yarn wait-until`\n\nWaits until condition is true.\n\n## License\n\n[MIT](LICENSE)\n","funding_links":["https://github.com/sponsors/remarkablemark","https://patreon.com/remarkablemark","https://ko-fi.com/remarkablemark","https://liberapay.com/remarkablemark","https://b.remarkabl.org/teespring"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fwebdriverjs-recipes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremarkablemark%2Fwebdriverjs-recipes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremarkablemark%2Fwebdriverjs-recipes/lists"}