{"id":13907565,"url":"https://github.com/LinusU/Marionette","last_synced_at":"2025-07-18T05:33:06.547Z","repository":{"id":41512190,"uuid":"160393513","full_name":"LinusU/Marionette","owner":"LinusU","description":"🧸 Swift library which provides a high-level API to control a WKWebView","archived":false,"fork":false,"pushed_at":"2019-03-12T15:38:28.000Z","size":51,"stargazers_count":415,"open_issues_count":3,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-21T09:45:11.788Z","etag":null,"topics":["automation","headless","headless-browsers","ios","macos","wkwebview"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/LinusU.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-04T17:19:44.000Z","updated_at":"2024-11-17T11:20:56.000Z","dependencies_parsed_at":"2022-08-26T10:10:17.484Z","dependency_job_id":null,"html_url":"https://github.com/LinusU/Marionette","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2FMarionette","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2FMarionette/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2FMarionette/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinusU%2FMarionette/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinusU","download_url":"https://codeload.github.com/LinusU/Marionette/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226361450,"owners_count":17612908,"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":["automation","headless","headless-browsers","ios","macos","wkwebview"],"created_at":"2024-08-06T23:01:59.514Z","updated_at":"2024-11-25T16:30:42.220Z","avatar_url":"https://github.com/LinusU.png","language":"Swift","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# Marionette\n\nMarionette is a Swift library which provides a high-level API to control a WKWebView.\n\nThe goal is to have the API closely mirror that of [Puppeteer](https://github.com/GoogleChrome/puppeteer).\n\n## Installation\n\n### SwiftPM\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/LinusU/Marionette\", from: \"1.0.0\"),\n]\n```\n\n### Carthage\n\n```text\ngithub \"LinusU/Marionette\" ~\u003e 1.0.0\n```\n\n## Usage\n\n```swift\nlet page = Marionette()\n\nfirstly {\n    page.goto(URL(string: \"https://www.google.com/\")!)\n}.then {\n    page.type(\"input[name='q']\", \"LinusU Marionette\")\n}.then {\n    when(fulfilled: page.waitForNavigation(), page.click(\"input[type='submit']\"))\n}.then {\n    page.screenshot()\n}.done {\n    print(\"Screenshot of Google results: \\($0)\")\n}\n```\n\n## Hacking\n\nThe Xcode project is generated automatically from `project.yml` using [XcodeGen](https://github.com/yonaskolb/XcodeGen). It's only checked in because Carthage needs it, do not edit it manually.\n\n```sh\n$ mint run yonaskolb/xcodegen\n💾  Saved project to Marionette.xcodeproj\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusU%2FMarionette","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLinusU%2FMarionette","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLinusU%2FMarionette/lists"}