You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys. I'm curious what your thoughts are on these changes.
wait_until is the same code from Capybara 1, which is often very useful when writing page objects code where you need to wait for a condition to occur over several elements. Following the removal of wait_until from Capybara 1, most folks have moved this type of waiting into the test suites, which is a good idea and something we've done as well. Still, sometimes you need to perform waiting actually in page object code.
poll_until is pretty much the same thing as wait_until, but zeroes-out the per-node waiting, which is super useful when asking questions like "is this node absent/present/visible/hidden right now?" and you don't want to wait. poll_until is also used for "document loading" when looking across multiple windows. I was struggling finding a good name for poll_until. My thought was that by ignoring the per node waiting, the user wants to do something like poll the page, but not wait for any particular element. Whereas wait_until implies waiting for an arbitrary condition to occur, poll_until implies polling the page for a condition, which is signified by zeroing-out the per node wait time.
After talking with @pkmiec, we concluded that the poll_until functionality, while useful internally to AePageObjects, doesn't have use externally. I've made some changes to hide it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Capybara.wait_untilfunctionality throughAePageObjects.wait_until.AePageObjects::Waiterfunctionality with an internalpoll_until.AePageObjects::Waiterwill be removed in version 2.Addresses #99