title: Copypaste doesn't work properly sometimes while XCUITest running. Why?
body: <p>When the issue happens I see <code>CoreSimulatorBridge pasted from CoreSimulatorBridge</code> popup instead of my usual popup <code>MyApp pasted from MyAppUITests-Runner</code>. Any comments why it could happen?
  code example:</p>
  <pre><code>    UIPasteboard.general.string = &quot;build 2882&quot;
  
      let app = XCUIApplication()
      let textField = app.textFields[&quot;my text field&quot;]
      textField.tap()
      let menuQuery = app.menuItems 
      let menuItem = menuQuery[&quot;Paste&quot;]
      menuItem.waitForExistence(timeout: 5)
      menuItem.tap()   
  </code></pre>
  <p>The rare result:
  <a href="https://i.stack.imgur.com/B1Jq6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B1Jq6.png" alt="enter image description here" /></a></p>