Open KunQian2 opened 8 years ago
you are running into those instable UI testing scenarios where on some systems it works and on some others it doesn't. It usually has something to do with timings and not doing enough checks for conditions. We have run into the same with a grid on our end. What we did was introduce "IsSelected" checks. It makes the tests excrutiating slow but alot more stable but still does not guarantee a 100% functionality. This is just a constant you need to live with and file it under False Positive Test Failures.
I need to use Shift+Arrow and Shift+End to select a range or a row in a grid in my test script. The below code work when the test script is run on some test environment but doesn't work when test script is run on other test environment(computer, teamcity build agent). Would you know why? Thanks.
Keyboard.Instance.HoldKey(specialKey); Keyboard.Instance.Enter(key); Keyboard.Instance.LeaveKey(specialKey);