{"id":17540632,"url":"https://github.com/shvul/wda-java-client","last_synced_at":"2025-07-12T14:38:24.682Z","repository":{"id":181412661,"uuid":"152273695","full_name":"shvul/wda-java-client","owner":"shvul","description":"WebDriverAgent Java Client for tvOS automation","archived":false,"fork":false,"pushed_at":"2018-11-22T21:03:42.000Z","size":105,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-25T16:45:25.837Z","etag":null,"topics":["automated-testing","qatools","tvos","webdriveragent"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shvul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-09T15:15:43.000Z","updated_at":"2023-01-15T08:38:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"d53962dc-7d21-419f-a6d0-4ff0a1e2561e","html_url":"https://github.com/shvul/wda-java-client","commit_stats":{"total_commits":85,"total_committers":1,"mean_commits":85.0,"dds":0.0,"last_synced_commit":"95ec04ec75ba447a3e6718943f81250230f6f831"},"previous_names":["shvul/wda-java-client"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvul%2Fwda-java-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvul%2Fwda-java-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvul%2Fwda-java-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shvul%2Fwda-java-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shvul","download_url":"https://codeload.github.com/shvul/wda-java-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248478672,"owners_count":21110744,"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":["automated-testing","qatools","tvos","webdriveragent"],"created_at":"2024-10-20T22:24:35.629Z","updated_at":"2025-04-11T20:40:37.229Z","avatar_url":"https://github.com/shvul.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WebDriverAgent Java Client\nWebDriverAgent Java Client for tvOS automation\n\n## Environment\n\n* A Mac computer with macOS 10.12 or higher is required.\n* Xcode 9.3 or higher is required.\n* Command Line Tools for Xcode are required.\n\n## External dependencies\n\nNext libraries and utilities are required for tests startup:\n```\nbrew install libimobiledevice --HEAD\n\n```\n\nThere is also a dependency, made necessary by Facebook's [WebDriverAgent](https://github.com/facebook/WebDriverAgent),\nfor the [Carthage](https://github.com/Carthage/Carthage) dependency manager. If you\ndo not have Carthage on your system, it can also be installed with\n[Homebrew](http://brew.sh/)\n\n```\nbrew install carthage\n```\n\nInstall [ios-deploy](https://github.com/phonegap/ios-deploy) for app installation on real devices.\n\n```\nnpm install -g ios-deploy\n```\n\n## Installation\n\nAdd [jitpack](https://jitpack.io) repository to download and build github projects as dependencies:\n```\n\u003crepository\u003e\n    \u003cid\u003ejitpack.io\u003c/id\u003e\n    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\u003c/repository\u003e\n```\nAdd wda-java-client dependency:\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.shvul\u003c/groupId\u003e\n    \u003cartifactId\u003ewda-java-client\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.3\u003c/version\u003e\n\u003c/dependency\u003e\n```\nDownload [WebDriverAgent](https://github.com/shvul/WebDriverAgent) with tvOS support:\n```\ngit clone https://github.com/shvul/WebDriverAgent.git\n```\nMove to WebDriverAgent folder:\n```\ncd ./WebDriverAgent\n```\nSwitch to application-commands branch to use application install/activate/launch commands:\n```\ngit checkout -b application-commands origin/application-commands\n```\nBuild carthage dependencies:\n```\nsh ./Scripts/bootstrap.sh\n```\n\nOpen xcode project and sign `WebDriverAgentLib_tvOS`, `WebDriverAgentRunner_tvOS` targets under yours provisioning profile.\n\n## Capabilities\n\nThese capabilities are available for java client configuration:\n\n|Capability|Description|Values|\n|----------|-----------|------|\n|`app`|The absolute local path to a `.ipa` file to install.| e.g., `/path/to/my.ipa`|\n|`bundleId`|Bundle ID of the app under test. `*`|e.g., `com.facebook.wda.integrationApp`|\n|`udid`|Unique device identifier of the connected physical device. Capability is required for app install/remove.|e.g., `a248bf31a45b0153e088d05d66e12dc9316d117d`|\n|`deviceIp`|Ip of the physical device. It should be reachable from you network. Capability is required for real devices.|e.g., `192.168.0.1`|\n|`deviceName`|The kind of mobile device or emulator to use.|`Apple TV`, `Apple TV 4K`, `Apple TV 4K (at 1080p)`|\n|`language`|(Sim-only) Language to set for the simulator.|e.g., `eng`|\n|`launchTimeout`| WebDriverAgent startup timeout. Defaults to `60`.|e.g., `120`|\n|`locale`|(Sim-only) Locale to set for the simulator.|e.g., `eng_us`|\n|`osVersion`|(Sim-only) tvOS OS version.|e.g., `12.0`|\n|`platform`|Which tvOS platform to use. `*`|`tvOS`, `tvOS Simulator`|\n|`usePrebuiltWDA`|Skips the build phase of running the WDA app. Building is then the responsibility of the user. Defaults to `false`.|e.g., `true`|\n|`wdaPath`|Path to WebDriverAgent xcode project. `*`|e.g., `path/to/WebDriverAgent/WebDriverAgent.xcodeproj`|\n\n`*` - required capabilities\n\n## Usage\n\nCreate driver capabilities:\n```\nDriverCapabilities capabilities = new DriverCapabilities();\ncapabilities.setDeviceId(\"a248bf31a45b0153e088d05d66e12dc9316d117d\");\ncapabilities.setWdaPath(\"WebDriverAgent/WebDriverAgent.xcodeproj\");\ncapabilities.setPlatfrom(\"tvOS\");\ncapabilities.setDeviceIp(\"192.168.0.1\");\ncapabilities.setBundleId(\"com.facebook.wda.integrationApp\");\n```\n\nCreate driver:\n```\nTVDriver driver = DriverFactory.createDriver(capabilities);\n```\nPerform checks:\n```\nTVElement category = driver.findElement(TVLocator.xpath(\"//XCUIElementTypeAny[@name='Category']\"));\ncategory.select();\nTVElement title = driver.findElement(TVLocator.accessibilityId(\"Title\"));\nAssert.assertTrue(title.getText(), \"Category\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshvul%2Fwda-java-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshvul%2Fwda-java-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshvul%2Fwda-java-client/lists"}