I\'ve tried setting attributes in the XCUIApplication
instance, in my UI Tests setUp()
let app = XCUIApplication()
app.launchEnviro
Bear in mind a few details. Firstly, XCUIAppliction is not a singleton, therefore, if you call XCUIApplication().arguments.append("myargument")
and then you call XCUIApplication().launch()
, it won't send the arguments. Check it here.
Second, if you modify the arguments after launching the app it won't work, it will send the new arguments to the next execution.