Hi All
Thanks for contributing ,I think i have figured some of the problem associate with it
First of all I am using pageObject and proxy elements in the ExpectedConditions which i think should not be used
Secondly there is a toString in method in FLuentWait.wait method which throws this exception
Try to explain with example
When we pass proxy elements to ExpectedCondition.elementTobeClickable there would be 2 scenarios on high level
1>Element is found and clickable-Condition true
2>Element not found or not clickable-Condition false-->TimeoutException
1st scenario works well but in seconds scenario in timeOutException there toString() method to display proper error and when toString method is called on the proxyElement which is not found then again it tries to locate the element and NoSuchElement or staleElementException is thrown .
Conclusion is --
ExpectedCondition class doesnot work with proxy WebElements if at all it needs to be used then make Custom method with toString override so Exception in FluentWait.until method should not be thrown
Thanks