                 
                 if (parameterNames.count == 1) {
                     if let selectorString = dict[key] {
-                        self.performSelector(Selector.init("\(selectorString):\(parameterNames[0]):"), withObject: app, withObject: parameterValues[0])
+                        self.perform(Selector.init("\(selectorString):\(parameterNames[0]):"), with: app, with: parameterValues[0])
                         return true
                     }
                 }

        
        for testStep in testArray {
            
            if (testStep.characters.count == 0 || testStep.hasPrefix("Narrative:")) {
                // ignore empty lines and introducing narrative line
                continue
            }

                    
                    print("Adding scenario '\(currentName)' with \(currentSteps.count) steps.")
                    
                    returnArray.add(scenario)
                    currentSteps.removeAll()
                }
                
                // ...and start a new scenario
                currentName = String(testStep.suffix(from: testStep.index(testStep.startIndex, offsetBy: 10)))
                print("Found start of test scenario '\(currentName)'")
                continue
            }
