Skip to content

Commit

Permalink
Fix typo and cleanup comments. No code change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdav committed Jul 31, 2024
1 parent 34d6a32 commit ac0695f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/WebDriver/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class Session {
}
}
}

public var location: Location {
get throws {
let response = try webDriver.send(Requests.SessionLocation.Get(session: id))
Expand Down Expand Up @@ -370,7 +370,7 @@ public class Session {

public func window(handle: String) throws -> Window { .init(session: self, handle: handle) }

/// - Prarmeter: Orientation the window will flip to {LANDSCAPE|PORTRAIT}
/// - Parameter: Orientation the window will flip to {LANDSCAPE|PORTRAIT}
public func setOrientation(_ value: ScreenOrientation) throws {
try webDriver.send(Requests.SessionOrientation.Post(session: id, orientation: value))
}
Expand All @@ -381,7 +381,7 @@ public class Session {
try webDriver.send(Requests.SessionSource(session: id)).value
}
}

/// - Returns: Current window handle
public var windowHandle: String {
get throws {
Expand All @@ -390,13 +390,13 @@ public class Session {
}
}

/// Set the current geolocation
/// Set the current geolocation
public func setLocation(_ location: Location) throws {
try webDriver.send(Requests.SessionLocation.Post(session: id, location: location))
}

public func setLocation(latitude: Double, longitude: Double, altitude: Double) throws {
try setLocation(Location(latitude: latitude, longitude: longitude, altitude: altitude))
public func setLocation(latitude: Double, longitude: Double, altitude: Double) throws {
try setLocation(Location(latitude: latitude, longitude: longitude, altitude: altitude))
}

/// - Returns: Array of window handles
Expand Down

0 comments on commit ac0695f

Please sign in to comment.