Wait for element - WebDriver - PageObject pattern
As long as I use PageObject pattern I wondered where should I wait for element on dynamic pages. Assuming we have test method and pageObject class. Should I do something like (in test method): Click on button Wait for element to be displayed Verify the element (contains eg. method isElementDisplayed()) Or maybe there is other good practice to wait for the element? Maybe we should wait for element in method isElementDisplayed which is in PageObject.class? You should wait for elements in your page object class, not in test class, because your elements should be defined in page object class, test