UITestingPlus

0.1.0

Utilities for working with XCUI testing
ChimeHQ/UITestingPlus

What's New

v0.1.0

2023-01-09T10:28:17Z
  • Initial Release

License Platforms Documentation

UITestingPlus

Utilities for working with XCUI testing.

Integration

dependencies: [
    .package(url: "https://github.com/ChimeHQ/UITestingPlus", branch: "main")
]

XCUIApplication Extensions

Menus

var windowMenuItemTitles: [String]
var windowMenuItemWindowTitles: [String]
var recentMenuItemTitles: [String]

Windows

func launchWithNoWindows()
func closeExistingWindows()
var frontWindow: XCUIElement
func resetLaunchEnvironmentAndArguments()
func quit()

Documents

func saveFrontmostDocument() throws
func closeFrontmostDocument() throws
func createNewDocument() throws
func saveDocument(in window: XCUIElement) throws
func saveDocument(in window: XCUIElement, to url: URL, overwrite: Bool = true) throws
func openDocument(with url: URL) -> XCUIElement

XCUIElement Extensions

Text Editing

func replaceTextWith(_ string: String)
func replaceTextWithPasteboard()
func appendText(_ string: String)
func deleteText()

func stringValue(in range: NSRange? = nil) throws -> String
func navigateTextView(to line: Int, column: Int) throws

Existance

func waitForNonExistence(timeout: TimeInterval) -> Bool

Classes

  • HittableElementExpectation

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Mar 18 2024 10:10:10 GMT-0900 (Hawaii-Aleutian Daylight Time)