I am having a problem that beats me to death. I have a wait.until at a few places and whenever there is a failure in the test (not finding an element etc.) the it keeps retrying and fails out to the next step after about 135-140 seconds, IF I run the project as a maven test.
If I simply run the test as a single test just by running that one Cucumber feature file (without running it as a maven test) then it takes about 35-40 seconds.
I have no clue why this would be happening. Here is the wait command I am using:
WebDriverWait wait = new WebDriverWait(driver, 10);