Skip to content

Commit c8ed2ac

Browse files
committed
test
1 parent da1479a commit c8ed2ac

File tree

3 files changed

+61
-34
lines changed

3 files changed

+61
-34
lines changed

Example/Package.resolved

Lines changed: 29 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let package = Package(
99
.macOS(.v12),
1010
],
1111
dependencies: [
12-
.package(url: "https://github.com/GetAutomaApp/SwiftWebDriver.git", branch: "master")
12+
.package(url: "https://github.com/GetAutomaApp/SwiftWebDriver.git", from: "0.2.0")
1313
],
1414
targets: [
1515
.executableTarget(
Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
// main.swift
2-
// Copyright (c) 2025 GetAutomaApp
3-
// All source code and related assets are the property of GetAutomaApp.
4-
// All rights reserved.
5-
//
6-
// This package is freely distributable under the MIT license.
7-
// This Package is a modified fork of https://github.com/ashi-psn/SwiftWebDriver.
1+
// // main.swift
2+
// // Copyright (c) 2025 GetAutomaApp
3+
// // All source code and related assets are the property of GetAutomaApp.
4+
// // All rights reserved.
5+
// //
6+
// // This package is freely distributable under the MIT license.
7+
// // This Package is a modified fork of https://github.com/ashi-psn/SwiftWebDriver.
88

9-
import SwiftWebDriver
9+
// import SwiftWebDriver
1010

11-
let chromeOption = try ChromeOptions(
12-
args: [
13-
Args(.headless),
14-
]
15-
)
11+
// let chromeOption = try ChromeOptions(
12+
// args: [
13+
// Args(.headless),
14+
// ]
15+
// )
1616

17-
let chromeDriver = try ChromeDriver(
18-
driverURLString: "http://localhost:9515",
19-
browserObject: chromeOption
20-
)
17+
// let chromeDriver = try ChromeDriver(
18+
// driverURLString: "http://localhost:9515",
19+
// browserObject: chromeOption
20+
// )
2121

22-
let driver = WebDriver(
23-
driver: chromeDriver
24-
)
22+
// let driver = WebDriver(
23+
// driver: chromeDriver
24+
// )
2525

26-
Task.detached {
27-
do {
28-
let status = try await driver.status()
29-
print(status)
30-
let sessionId = try await driver.start()
31-
print(sessionId)
32-
try await driver.stop()
33-
} catch {
34-
print(error)
35-
}
36-
}
26+
// Task.detached {
27+
// do {
28+
// let status = try await driver.status()
29+
// print(status)
30+
// let sessionId = try await driver.start()
31+
// print(sessionId)
32+
// try await driver.stop()
33+
// } catch {
34+
// print(error)
35+
// }
36+
// }

0 commit comments

Comments
 (0)