Skip to content

Doesn't work with WebDriverAgent & Swift #73

@bootstraponline

Description

@bootstraponline

The objective c bindings are unable to start a WebDriverAgent session. The code runs, it just does nothing.

import Foundation
import Selenium

let appPath = "/path/to/app.app"
let caps:SECapabilities = SECapabilities()

caps.addCapabilityForKey("bundleId", andValue: "com.example.bundleid")
caps.app = appPath

let driver = SERemoteWebDriver(serverAddress: "http://localhost", port:8100)
driver.startSessionWithDesiredCapabilities(caps, requiredCapabilities: nil)
driver.findElementBy(SEBy(locationStrategy: "id", value: "some_id"))
driver.quit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions