2
0

notVisible.js 412 B

12345678910111213141516
  1. exports.assertion = function (selector) {
  2. this.message = 'Testing if element <' + selector + '> is not visible.'
  3. this.expected = false
  4. this.pass = function (val) {
  5. return val === this.expected
  6. }
  7. this.value = function (res) {
  8. return res.value
  9. }
  10. this.command = function (cb) {
  11. var self = this
  12. return this.api.isVisible(selector, function (res) {
  13. cb.call(self, res)
  14. })
  15. }
  16. }