{"id":15935258,"url":"https://github.com/jdenen/watir-device","last_synced_at":"2025-10-18T13:50:38.219Z","repository":{"id":56897807,"uuid":"41710954","full_name":"jdenen/watir-device","owner":"jdenen","description":"Automate Chrome Developer Tools' device emulation with watir-webdriver","archived":false,"fork":false,"pushed_at":"2015-09-03T20:07:48.000Z","size":692,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T08:24:35.616Z","etag":null,"topics":["device-emulation","ruby","testing","watir","watir-webdriver"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/jdenen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-09-01T01:58:30.000Z","updated_at":"2017-02-20T14:56:26.000Z","dependencies_parsed_at":"2022-08-21T02:20:15.619Z","dependency_job_id":null,"html_url":"https://github.com/jdenen/watir-device","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdenen%2Fwatir-device","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdenen%2Fwatir-device/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdenen%2Fwatir-device/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdenen%2Fwatir-device/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdenen","download_url":"https://codeload.github.com/jdenen/watir-device/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024155,"owners_count":20870940,"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":["device-emulation","ruby","testing","watir","watir-webdriver"],"created_at":"2024-10-07T03:40:52.032Z","updated_at":"2025-10-18T13:50:38.117Z","avatar_url":"https://github.com/jdenen.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Watir::Device\n\n[![Gem Version](https://badge.fury.io/rb/watir-device.svg)](http://badge.fury.io/rb/watir-device)\n[![Build Status](https://travis-ci.org/jdenen/watir-device.svg?branch=master)](https://travis-ci.org/jdenen/watir-device)\n\nAutomate Chrome Developer Tools' device emulation with watir-webdriver.\n\n![screenshot](screenshot.png)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'watir-device'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install watir-device\n\n## Usage\n\nInstantiate an emulated device much like you would a `Watir::Browser` object. Just pass it a valid device string:\n\n```ruby\nrequire 'watir-device'\ndevice = Watir::Device.new \"Samsung Galaxy Note 3\"\ndevice.goto \"www.google.com\"\n```\n\n```ruby\nrequire 'watir-device'\ndevice = Watir::Device.start \"www.google.com\", \"Samsung Galaxy Note 3\"\n```\n\n#### Methods\n\nAll methods you normally use with `Watir::Browser` are available to your `Watir::Device` object. The `Watir::Browser` object itself is available via `Watir::Device#browser`, though you shouldn't need to access it.\n\n```ruby\ndevice = Watir::Device.new \"Samsung Galaxy Note 3\"\ndevice.browser\n#=\u003e \u003cWatir::Browser:0x...\u003e\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/watir-device/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdenen%2Fwatir-device","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdenen%2Fwatir-device","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdenen%2Fwatir-device/lists"}