{"id":30700125,"url":"https://github.com/operasoftware/watir3-spec","last_synced_at":"2025-09-02T11:44:11.411Z","repository":{"id":1248489,"uuid":"1187011","full_name":"operasoftware/watir3-spec","owner":"operasoftware","description":"Proposal for Watir 3 API","archived":false,"fork":false,"pushed_at":"2011-07-04T10:43:20.000Z","size":711,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-04-14T06:01:55.614Z","etag":null,"topics":[],"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/operasoftware.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":"2010-12-21T12:14:53.000Z","updated_at":"2022-08-28T18:40:02.000Z","dependencies_parsed_at":"2022-08-16T12:45:13.704Z","dependency_job_id":null,"html_url":"https://github.com/operasoftware/watir3-spec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/operasoftware/watir3-spec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fwatir3-spec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fwatir3-spec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fwatir3-spec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fwatir3-spec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operasoftware","download_url":"https://codeload.github.com/operasoftware/watir3-spec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operasoftware%2Fwatir3-spec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273279922,"owners_count":25077318,"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-09-02T02:00:09.530Z","response_time":77,"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":[],"created_at":"2025-09-02T11:43:32.922Z","updated_at":"2025-09-02T11:44:11.396Z","avatar_url":"https://github.com/operasoftware.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Watir 3 Specification\n=====================\n\nThis repository contains a proposal for the successor to the current\n[Watir API](http://wiki.openqa.org/display/WTR/Summary) (version 1).  It\nis still in development, and we welcome any feedback on our [mailing\nlist](https://list.opera.com/mailman/listinfo/operawatir-users).\n\nThe first generation Watir API suffers from a lack consistency and\nfrom not being easily extendible in special cases.  Some of these issues\nwere addressed in the second generation API, Watir 2, by Jari Bakken and\nhis watir-webdriver implementation.  However, even with full HTML 5\ncompliancy, it was still hard to access all elements and attributes\npresent in the DOM.\n\nWatir 3 is the next generation specification aiming to keep the methods\nas consistent as possible, i.e. no special cases, such as `browser.link`\nin Watir 1, and to make the common case as simple and as concise as\npossible.\n\nThis specification can be extended by a Watir 2 implementation, which\nagain can be extended by a Watir 1 implementation.  This means that we\nin the future can be able to support _all three_ API versions in the\nsame code base.  This work is unfortunately still a work in progress.\n\nThis specification is so far implemented by\n[OperaWatir](https://github.com/operasoftware/operawatir).\n\nDependencies\n------------\n\nThe specs run a small Sinatra webapp (_WatirSpec::Server_) to simulate\ninteracting with a web server.  However, most specs use the _file://_\nscheme to avoid hitting the server.\n\nA quick guide\n-------------\n\nStart with\n\n    window = OperaWatir::Browser.new.window\n\nFind all `\u003cdiv\u003e` tags with\n\n    window.div # =\u003e Collection of \u003cdiv\u003es\n    window.find_by_tag(:div) # =\u003e Array of \u003cdiv\u003es\n\nFind all `\u003ca href=\"index.html\"\u003e` links with\n\n    window.a(:href =\u003e 'index.html') # =\u003e Collection of \u003ca\u003es with the href attribute equal to 'index.html'\n\nFind all `\u003cp\u003e`s which are direct descendants of `\u003cdiv\u003e`s with (not currently implemented)\n\n    window.div.p # =\u003e Collection of \u003cp\u003es\n\nGet attributes with\n\n    window.div(:id =\u003e 'logo').id # =\u003e 'logo'\n    window.div(:title =\u003e 'Products').title # =\u003e ['Products', 'Products', …]\n\nPerform actions with gusto!\n\n    window.div.click # clicks all the \u003cdiv\u003es in the document\n    window.header.trigger :onMouseMove # triggers a mouse move event on all the \u003cheader\u003e elements\n\nUse filters to narrow down your search to find elements like `\u003cdiv\nid='foo' class='bar'\u003e`:\n\n    window.div(:id =\u003e 'foo', :class =\u003e 'bar')\n\nFind invalid elements with any tag name and any attribute name, just\nlike in jQuery.  This will find `\u003cfoo bar='baz' bah='Hello!'\u003e`:\n\n    window.foo(:bar =\u003e 'baz').bah # =\u003e 'Hello!'\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperasoftware%2Fwatir3-spec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperasoftware%2Fwatir3-spec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperasoftware%2Fwatir3-spec/lists"}