{"id":18637549,"url":"https://github.com/dutchcoders/gowebdriver","last_synced_at":"2025-04-11T10:30:26.737Z","repository":{"id":73224777,"uuid":"50724908","full_name":"dutchcoders/gowebdriver","owner":"dutchcoders","description":"Go WebDriver library","archived":false,"fork":false,"pushed_at":"2016-01-31T21:43:41.000Z","size":8,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T00:44:56.033Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/dutchcoders.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":"2016-01-30T12:59:10.000Z","updated_at":"2023-09-28T10:32:23.000Z","dependencies_parsed_at":"2023-04-23T22:01:39.165Z","dependency_job_id":null,"html_url":"https://github.com/dutchcoders/gowebdriver","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/dutchcoders%2Fgowebdriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fgowebdriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fgowebdriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dutchcoders%2Fgowebdriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dutchcoders","download_url":"https://codeload.github.com/dutchcoders/gowebdriver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223465920,"owners_count":17149761,"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-11-07T05:36:43.519Z","updated_at":"2024-11-07T05:36:44.021Z","avatar_url":"https://github.com/dutchcoders.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gowebdriver\n===========\n\nGolang Webdriver library \n\n## Sample\n```\npackage main\n\nimport (\n        \"io\"\n        \"os\"\n\n        webdriver \"github.com/dutchcoders/gowebdriver\"\n)\n\nfunc main() {\n        wd := webdriver.New(\n                webdriver.BrowserName(\"phantomjs\"),\n                webdriver.PageLoadingStrategyEager,\n                webdriver.AcceptSslCerts(true),\n                webdriver.Platform(\"ANY\"),\n                webdriver.Version(\"\"),\n                webdriver.LocationContextEnabled(true),\n                webdriver.JavascriptEnabled(true),\n                webdriver.HandlesAlerts(true),\n                webdriver.Rotatable(true),\n                webdriver.CustomCapability(\"phantomjs.page.settings.userAgent\", \"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36\"),\n                webdriver.CustomCapability(\"phantomjs.page.customHeaders.Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\"),\n                webdriver.CustomCapability(\"phantomjs.page.customHeaders.Accept-Language\", \"ru-RU\"),\n        )\n\n        session, err := wd.Connect(\"http://127.0.0.1:4444\")\n        if err != nil {\n                panic(err)\n        }\n\n        defer session.Close()\n\n        if _, err = session.WindowSize(2048, 1680); err != nil {\n                panic(err)\n        }\n        if _, err = session.Url(\"http://httpbin.org/headers\"); err != nil {\n                panic(err)\n        }\n\n        if r, err := session.Screenshot(); err != nil {\n                panic(err)\n        } else {\n                w, _ := os.Create(\"screenshot.png\")\n                defer w.Close()\n\n                io.Copy(w, r)\n        }\n}\n```\n\n## Testing\n```\ngo test\n```\n\n## References\n* https://github.com/stuart/elixir-webdriver/blob/master/lib/webdriver/session.ex\n* https://w3c.github.io/webdriver/webdriver-spec.html\n* https://selenium.googlecode.com/git/docs/api/java/constant-values.html#org.openqa.selenium.remote.CapabilityType.PAGE_LOADING_STRATEGY\n\n\n## Contributors\n\n**Remco Verhoef**\n- \u003chttps://twitter.com/remco_verhoef\u003e\n- \u003chttps://twitter.com/dutchcoders\u003e\n\n## Copyright and license\n\nCode and documentation copyright 2011-2016 Remco Verhoef.\n\nCode released under [the MIT license](LICENSE).\n~\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcoders%2Fgowebdriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdutchcoders%2Fgowebdriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdutchcoders%2Fgowebdriver/lists"}