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 presume there's no way to increase the default timeout while waiting for an element to be @Visible, since this seems to be hard-coded in UITestLifecycle. Is that correct? Is there any workaround besides not using that annotation and doing it the 'standard' Selenium way (in which case I'm not sure the benefits of Frameworkium would outweigh the downsides).
The text was updated successfully, but these errors were encountered:
davecpayne
changed the title
Increase the default wait time for @Visible annotations
Modify the default wait time for @Visible annotations
Nov 28, 2019
The @Visible uses the wait defined on the Page object.
Therefore, if you'd like to change it you have to change the way the page is constructed. There are two options for this:
If you are using the PageFactory you can use PageFactory.newInstance(MyPage.class, Duration.of(20, SECONDS))
new MyPage().get(Duration.ofSeconds(20))
Don't use @Visible on slow/variable pages
or, if this is popular we would consider customising the default (PRs welcome).
Another solution would be to speed up your page loads as, unless >10s is an acceptable time for users to wait, this would likely have better longer term outcomes :)
Per my question on StackOverflow: https://stackoverflow.com/questions/59052480/is-there-any-way-to-increase-the-default-wait-in-frameworkium-for-visible-anno
I presume there's no way to increase the default timeout while waiting for an element to be
@Visible
, since this seems to be hard-coded inUITestLifecycle
. Is that correct? Is there any workaround besides not using that annotation and doing it the 'standard' Selenium way (in which case I'm not sure the benefits of Frameworkium would outweigh the downsides).The text was updated successfully, but these errors were encountered: