In my angular e2e test I would like to be able to tell if an element exists on the DOM, it's not an test expectation, just a condition I need.
I tried to do
element(".logout-button:visible").count() > 0
but
count()
returns a future and won't work outside anexpect()
. It seems that there is no way to add a callback when it resolves.I tried to do
element(".logout-button:visible").query(element, callback)
But this one throws an exception when the element does not exist without bothering to go into my callback function. So how should I achieve this rather simple task?
Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/8Xouya_8lB4/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
No. According to a member from angular, you will have to write scenario dsl. But they also said they are going to re write the end to end framework from scratch. So I stopped investing on it
--