{"id":16071298,"url":"https://github.com/mvz/gnome_app_driver","last_synced_at":"2025-08-09T09:31:20.568Z","repository":{"id":26708153,"uuid":"109581394","full_name":"mvz/gnome_app_driver","owner":"mvz","description":"Test Ruby-GNOME2 applications using Atspi","archived":false,"fork":false,"pushed_at":"2024-11-09T10:45:09.000Z","size":171,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T16:36:11.989Z","etag":null,"topics":["gnome","hacktoberfest","ruby","ruby-gnome2"],"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/mvz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-05T13:22:33.000Z","updated_at":"2024-11-09T10:45:11.000Z","dependencies_parsed_at":"2024-07-14T08:45:11.206Z","dependency_job_id":"292e4a64-ca40-46c4-a4c8-d0efcbb35d48","html_url":"https://github.com/mvz/gnome_app_driver","commit_stats":{"total_commits":154,"total_committers":3,"mean_commits":"51.333333333333336","dds":0.3571428571428571,"last_synced_commit":"afc5e7f147350a7fc8add9170dbae811450c7c17"},"previous_names":["mvz/ruby-gnome2_app_driver"],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fgnome_app_driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fgnome_app_driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fgnome_app_driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvz%2Fgnome_app_driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvz","download_url":"https://codeload.github.com/mvz/gnome_app_driver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229261119,"owners_count":18045559,"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":["gnome","hacktoberfest","ruby","ruby-gnome2"],"created_at":"2024-10-09T07:23:40.237Z","updated_at":"2024-12-11T17:05:43.054Z","avatar_url":"https://github.com/mvz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby-GNOME2 App Driver\n\nTest driver for Ruby-GNOME2 applications using Atspi. Takes care of boot and\nshutdown, and provides a handle on the GUI's main UI frame.\n\n## Usage\n\nThis driver assumes your application lives in `bin/` and uses additional ruby\ncode in `lib/`.\n\nSay, your application is called `foo`. Then, in your tests, do something like this:\n\n```ruby\nrequire 'gnome_app_driver'\n\ndescribe 'The application' do\n  before do\n    @driver = GnomeAppDriver.new('foo')\n\n    # This will boot `ruby -Ilib bin/foo`, wait for its main window to appear,\n    # and focus it.\n    @driver.boot\n  end\n\n  it 'does stuff' do\n    # Fetch the main window's atspi object\n    frame = @driver.frame\n\n    # You can now interact with the window's objects\n\n    # Select item matching /bar/ from combo box:\n    box = frame.find_role :combo_box\n    item = box.find_role :menu_item, /bar/\n    box.get_action_name(0).must_equal 'press'\n    box.do_action 0\n    item.get_action_name(0).must_equal 'click'\n    item.do_action 0\n\n    # Fetch contents of a text box\n    textbox = frame.find_role :text\n    textbox.get_text(0, 100).must_equal 'Foo bar baz'\n\n    # Quit application\n    menu_item = frame.find_role :menu_item, /Quit/\n    menu_item.do_action 0\n\n    # Check exit status\n    status = @driver.cleanup\n    status.exitstatus.must_equal 0\n  end\n\n  after do\n    # Ensure application is cleaned up\n    @driver.cleanup\n  end\nend\n```\n\n## Installation\n\n```\ngem install gnome_app_driver\n```\n\n## Dependencies\n\nRuby-GNOME2 App Driver depends on the `gobject-introspection` gem. It also\nrequires Ruby 3.0 or higher.\n\n## Contributing\n\nContributions are welcome! Please feel free to create issues or pull requests\non GitHub.\n\n## License\n\nCopyright \u0026copy; 2015-2024 [Matijs van Zuijlen](http://www.matijs.net).\nSee LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvz%2Fgnome_app_driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvz%2Fgnome_app_driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvz%2Fgnome_app_driver/lists"}