Skip to main content
Glama
PressKeyRequest.swift785 B
import Foundation import XCTest struct PressKeyRequest: Codable { enum Key: String, Codable { case delete case `return` case enter case tab case space case escape } let key: Key var xctestKey: String { // Note: XCUIKeyboardKey().rawValue is the ascii representation of that key, // not the enum value name. switch key { case .delete: return XCUIKeyboardKey.delete.rawValue case .return: return XCUIKeyboardKey.return.rawValue case .enter: return XCUIKeyboardKey.enter.rawValue case .tab: return XCUIKeyboardKey.tab.rawValue case .space: return XCUIKeyboardKey.space.rawValue case .escape: return XCUIKeyboardKey.escape.rawValue } } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server