summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPNUITests/XCUIElementQuery+Extensions.swift
blob: 7ac01fcb6d0e920bfa1894bd00b098664359f83b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//
//  XCUIElementQuery+Extensions.swift
//  MullvadVPNUITests
//
//  Created by Niklas Berglund on 2024-01-19.
//  Copyright © 2025 Mullvad VPN AB. All rights reserved.
//

import Foundation
import XCTest

extension XCUIElementQuery {
    subscript(key: any RawRepresentable<String>) -> XCUIElement {
        self[key.rawValue]
    }

    subscript(key: AccessibilityIdentifier) -> XCUIElement {
        self[key.asString]
    }
}