🎉 Add CocoaPods support
Marionette is a Swift library which provides a high-level API to control a WKWebView.
The goal is to have the API closely mirror that of Puppeteer.
dependencies: [ .package(url: "https://github.com/LinusU/Marionette", from: "1.0.0"), ]
github "LinusU/Marionette" ~> 1.0.0
let page = Marionette() firstly { page.goto(URL(string: "https://www.google.com/")!) }.then { page.type("input[name='q']", "LinusU Marionette") }.then { when(fulfilled: page.waitForNavigation(), page.click("input[type='submit']")) }.then { page.screenshot() }.done { print("Screenshot of Google results: \($0)") }
The Xcode project is generated automatically from project.yml using XcodeGen. It’s only checked in because Carthage needs it, do not edit it manually.
project.yml
$ mint run yonaskolb/xcodegen 💾 Saved project to Marionette.xcodeproj
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
Marionette
Marionette is a Swift library which provides a high-level API to control a WKWebView.
The goal is to have the API closely mirror that of Puppeteer.
Installation
SwiftPM
Carthage
Usage
Hacking
The Xcode project is generated automatically from
project.yml
using XcodeGen. It’s only checked in because Carthage needs it, do not edit it manually.