block with the given modifier keys held down.
- Xcode 7.2+
A set of modifier flags (
XCUIElement) to use while executing the block.
.Key Modifier Flags
The block to execute.
This method pushes and pops the modifiers as global state without need for reference to a particular element. Inside the block, elements can be clicked on, dragged from, typed in to, and so on.