Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add wrap-default-timeout && wrap-default-interval #271

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

Uunnamed
Copy link
Contributor

@Uunnamed Uunnamed commented Aug 7, 2020

#fixies #160

@@ -1431,6 +1431,22 @@ The final form would be something like this:
...etc))
```

In additional to functions `with-wait` and `do-wait` there are a number of waiting functions:
`wait-visible`, `wait-has-alert`, `wait-predicate` and etc (full list see [here](http://etaoin.grishaev.me/etaoin.api.html#var-wait)). They have default timeout/interval values and can be redefined using the `with-default-timeout`, `with-default-interval` macros, respectively.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

с правками:

In addition to `with-wait` and `do-wait` there are a number of waiting functions: `wait-visible`, `wait-has-alert`, `wait-predicate`, etc (see the full list in the [corresponsing section](http://etaoin.grishaev.me/etaoin.api.html#var-wait)). They accept default timeout/interval values that can be redefined using the `with-default-timeout` and `with-default-interval` macros, respectively.

(def ^:dynamic *default-interval* 0.33)


(defmacro with-default-timeout
Copy link
Collaborator

@igrishaev igrishaev Aug 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

давай чуть переименуем, а то не понятно, что за таймаут, что за интервал

  • *wait-iterval*
  • *wait-timeout*
  • with-wait-timeout
  • with-wait-interval

@Uunnamed Uunnamed merged commit a783dc6 into master Aug 10, 2020
@Uunnamed Uunnamed deleted the fix-default-timeout-and-interval branch August 10, 2020 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants