[QA] checking that an element does not appear

Nik Everett neverett at wikimedia.org
Sat Sep 28 02:04:55 UTC 2013


I believe I use a timed delay and then a should not be visible. Better would be to trigger on something that happens after your element would have become visible and wait for that to appear. 

Sent from my iPhone

> On Sep 27, 2013, at 9:55 PM, "Amir E. Aharoni" <amir.aharoni at mail.huji.ac.il> wrote:
> 
> Hi,
> 
> I am trying to check that an element does not appear:
> https://gerrit.wikimedia.org/r/#/c/86348/1/tests/browser/features/step_definitions/signed_in_source_language_steps.rb
> 
> I tried to do <element>.should_not be_visible, but apparently that is invalid.
> 
> What is the most robust way to do it?
> 
> Thanks!
> 
> --
> Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
> http://aharoni.wordpress.com
> ‪“We're living in pieces,
> I want to live in peace.” – T. Moore‬
> _______________________________________________
> QA mailing list
> QA at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/qa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/qa/attachments/20130927/20c74441/attachment.html>


More information about the QA mailing list