Wait.until command running appium 1.6 tests with maven


#1

Hi all,

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);
wait.until(ExpectedConditions.elementToBeClickable(MobileBy.AccessibilityId(pickUser))).click();


#3

@Styris Sorry, I thought I had an answer but I realized I had misread the issue.


#4

Hi @Styris

Even i have same issue.

wait.until(ExpectedConditions.elementToBeClickable is not running on Mobile.
Same code is running for on laptop.

Please help me if you found solution.