How to Solve Complex Scenarios in Test Automation