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

fix wait-has-text #274

Merged
merged 4 commits into from
Aug 11, 2020
Merged

fix wait-has-text #274

merged 4 commits into from
Aug 11, 2020

Conversation

Uunnamed
Copy link
Contributor

@Uunnamed Uunnamed commented Aug 10, 2020

#fixies #27

[driver q text & [opt]]
(let [message (format "Wait for %s element has text %s"
q text)]
(wait-predicate #(has-text? driver q text)
(assoc opt :message message))))

(defn wait-has-text-everywhere
Copy link
Collaborator

@igrishaev igrishaev Aug 11, 2020

Choose a reason for hiding this comment

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

может, здесь пробросить параметры в wait-has-text?

(wait-has-text driver {:xpath "*"} text opt)

Я помню, что еще до этого говорил, что лучше не завязывать функции друг на друга. Но в тот раз я не был уверен в поведении, а тут все должно быть нормально.

Copy link
Collaborator

Choose a reason for hiding this comment

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

И добавить прмер в readme

@Uunnamed Uunnamed merged commit 47f2793 into master Aug 11, 2020
@Uunnamed Uunnamed deleted the fix-wait-has-text branch August 11, 2020 08:26
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