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
I have an abstraction I've used a lot with Java, where my page objects wait for the visibility of elements that I know to be dynamic. I've even made that the default. Eventually, I need to support similar capabilities in Python. Can a PageElement be asynchronous?
The text was updated successfully, but these errors were encountered:
danizen
changed the title
Question - what about SPAs and webdriver wait?
Please support SPAs and JavaScript heavy applications by allowing PageElements and MultiPageElements to be marked as dynamic
Oct 24, 2017
Having looked at the code, I can see that one way to do this would be to add an element to my PageObject that is specially marked as the indicator that the page is ready. Then calling, "page.wait()" would wait for that element. For now, I'll go with that idiom, and build a subclass of PageObject, AsyncPageObject, with a default implementation of wait which looks for a an element called "pageready", and waits for it if it is present, taking an optional timeout.
I have an abstraction I've used a lot with Java, where my page objects wait for the visibility of elements that I know to be dynamic. I've even made that the default. Eventually, I need to support similar capabilities in Python. Can a PageElement be asynchronous?
The text was updated successfully, but these errors were encountered: