{"_id":"chai-webdriver-promised","_rev":"44-83e09c066f9f2aca7a6466877ff9b4f8","name":"chai-webdriver-promised","description":"Build more expressive integration tests with some webdriver sugar for chai.js","dist-tags":{"latest":"4.0.3"},"versions":{"1.0.0":{"name":"chai-webdriver-promised","version":"1.0.0","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js","prepublish":"npm run-script build"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.0.1","selenium-webdriver":">=2.39.0","string":"~1.8.0","webdriver-sizzle-promised":"~1.0.0"},"devDependencies":{"chai":"^1.9.0","phantomjs":"^1.9.7-1","mocha":"~1.20.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@1.0.0","dist":{"shasum":"0e5d7d7853aacde71f7a7d42bf6c644691176025","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-1.0.0.tgz","integrity":"sha512-TaUr1yULTocyUd9CT7863wvvYrLO7dYHUDLu50Qj1Y6/7V9S8jSDGoyByR4vMEoAfQAuStL7TAx1GkHm5WrmBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkJPceCrnHWDF/ixO+DeoFKcFzRJB9H0+I7IhzrPteaAiEA5rELEOwbya3UkTFlR+12zhRHhJtn4H5IE1JU9BWes+g="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"1.1.0":{"name":"chai-webdriver-promised","version":"1.1.0","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js","prepublish":"npm run-script build"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.0.1","selenium-webdriver":">=2.39.0","string":"~1.8.0","webdriver-sizzle-promised":"~1.0.0"},"devDependencies":{"chai":"^1.9.0","phantomjs":"^1.9.7-1","mocha":"~1.20.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@1.1.0","dist":{"shasum":"7c9391b5d32084b5a7b787922a4cff245980006a","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-1.1.0.tgz","integrity":"sha512-FRABia+kfapiWAU/EL5X4Nn9KxBFKlBUtF4e/baaEZbXV85NqUldUniKuW7+8LlnAMO+K6RiGx0D2X2VQ6utyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEY0th9annpHbGYnrVk1BHlAcv7P9iBt4FK010sPYY8QAiEAqAfLJTPtSMTPIhpY6ES7VCCa18pOevIODEPWBrXEPgo="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"2.0.0":{"name":"chai-webdriver-promised","version":"2.0.0","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js","prepublish":"npm run-script build"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.0.1","selenium-webdriver":">=2.39.0","string":"~1.8.0","webdriver-sizzle-promised":"~2.0.0"},"devDependencies":{"chai":"^1.9.0","phantomjs":"^1.9.7-1","mocha":"~1.20.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@2.0.0","dist":{"shasum":"97a72a3d43e49354bfc182c899fb8d674823a312","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-2.0.0.tgz","integrity":"sha512-ojbjiEWto/xaAc3mbWZ5K1No+FSdI+nRUIANZ8NJpJijtN0svsRxxyBL5vhYgJ1VVaugdYUOAY+cNdIyMsx+qQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFeR2kY0m/TbUQnxc+ypdYgxSa6bX52Xh9nJ0LDK86TxAiEAvleoFuhhuX3CjUpFy8TVLjLGKccN/u+gI3ODFMsyrOE="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"2.0.1":{"name":"chai-webdriver-promised","version":"2.0.1","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.0.1","selenium-webdriver":">=2.39.0","string":"~1.8.0","webdriver-sizzle-promised":"~2.0.0"},"devDependencies":{"chai":"^1.9.0","phantomjs":"^1.9.7-1","mocha":"~1.20.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@2.0.1","dist":{"shasum":"4928145fd6f16110515278e67d20456d32518106","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-2.0.1.tgz","integrity":"sha512-9UTD3GUoJhtk3fgS3Jz4fXtUEvlJ9GGeH2JvfNK7+gP1Piuu2VBFqdjtV5+6/FRtFWcHQCpJaUIMgG7yNswuHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHjG6lQ628q3xFgiHfiutu4bI1p4ncxIIze2ROCiJPWBAiBUvlPhoJDd7k3Rs9LX1cn2bq688bSpnz9rQKMr45LpyQ=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"3.0.0":{"name":"chai-webdriver-promised","version":"3.0.0","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.0.1","selenium-webdriver":">=2.39.0","webdriver-sizzle-promised":"~2.0.0"},"devDependencies":{"chai":"^1.9.0","phantomjs":"^1.9.7-1","mocha":"~1.20.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@3.0.0","dist":{"shasum":"f91db9adb3a343c4b14ac305dc8b13a278a916a4","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-3.0.0.tgz","integrity":"sha512-YxUMkjExuaY8xlkgKSeAPmodOFDRp1qB2K/xwuz/hzznMfUIXD2IDSwUU3HJvkOKCE8p+Nji7dwyJn9XXvghtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrjSviAM+969r7p+ycius7uxW11goMBFnmKQX+fe/bJQIgNwR6OQ/MN0hz7hQj15V4VbPaZPKfZWC/cByp+W8QbmY="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"3.0.1":{"name":"chai-webdriver-promised","version":"3.0.1","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"dependencies":{"q":"~1.1.2","selenium-webdriver":"~2.44.0","webdriver-sizzle-promised":"~2.0.2"},"devDependencies":{"chai":"~1.10.0","phantomjs":"^1.9.7-1","mocha":"~2.0.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@3.0.1","dist":{"shasum":"e6e816d265b8c94bca0b6218ee96d4bb34cf4e05","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-3.0.1.tgz","integrity":"sha512-N8zXvKM7Xdyb8wS4dqUGCn6bNL7xqru5w2enN6322dRRVlJXvQFodttZWAJ6I4uOC59aAUtGPVlAK6a84tx/pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMul1oZZwLNsn4v7ukrjN0PJ79daY9lT3jMssWd7hRqAiBcoTYmAdz8rgISbC8pwyyedrOms8+g+Lcjfx6wbrpPqQ=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"4.0.0":{"name":"chai-webdriver-promised","version":"4.0.0","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"peerDependencies":{"selenium-webdriver":"~2.44.0","chai":"~1.10.0"},"dependencies":{"q":"~1.1.2","webdriver-sizzle-promised":"~2.0.2"},"devDependencies":{"phantomjs":"^1.9.7-1","mocha":"~2.0.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@4.0.0","dist":{"shasum":"7841aa5023dcc179e4aab44471408ffb94f14cd2","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-4.0.0.tgz","integrity":"sha512-/RktwFjbpuvMzBPZN08gqJGlpGn6Zx7HY9aJGejJn/5JfKmcwh52gZcG+1ZQ0JoE5mQtX2yw6nZNdpZHb3WvcA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6d6u0fAyVgVNRDc+BBwixydchtmyuCmK+HlvSQWxbTAIgb7Xsfyd0LmE+nmoOdM6Ge3IXHahhS5fXpo4e6MWL/Dg="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"4.0.1":{"name":"chai-webdriver-promised","version":"4.0.1","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"peerDependencies":{"selenium-webdriver":"2.x","chai":"1.x"},"dependencies":{"q":"~1.1.2","webdriver-sizzle-promised":"~2.0.2"},"devDependencies":{"phantomjs":"^1.9.7-1","mocha":"~2.0.1"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@4.0.1","dist":{"shasum":"fcf1fb96dc7cdba9d5fc5bbbf2313965262ff51a","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-4.0.1.tgz","integrity":"sha512-09w7q/XiZWhdCm9SDXW6d6k/cu6oGcbyyVIr3FQgkW+94SiFXPdyEkxEZus41qoCI6Gcsh2bN9tQicttHZDriA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAU/FRVDZsSs6jSICauIm/knOJp4l+5DsKFi2hvYtJIzAiAJm53rF7p3Pf9tVLOusHWoa6co26p43tey77Q38lg3XA=="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"4.0.2":{"name":"chai-webdriver-promised","version":"4.0.2","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"peerDependencies":{"selenium-webdriver":"2.x","chai":"1.x"},"dependencies":{"q":"~1.1.2","webdriver-sizzle-promised":"~2.0.2"},"devDependencies":{"phantomjs":"^1.9.7-1","mocha":"~2.0.1","chai":"~1.10.0","selenium-webdriver":"~2.44.0"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@4.0.2","dist":{"shasum":"d179a75c75c56548dff70ce416d4c7fa63631937","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-4.0.2.tgz","integrity":"sha512-Z5cuVKHalueLVc5byQyRpcyX8ohnlqFnOeCp607sR1zFeImOFGhlKjL3h/lAZ6hVy/S/bw9OyJOnx8P+wUBoFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgTF1Vp9tHQ3R85NdwPmTQbRxgVfbPMiXZaUsrcNGyRwIhAKAZYeD/eZaaBDFSfNX39jOTBM9eTxxo/IE5a82m/pyK"}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]},"4.0.3":{"name":"chai-webdriver-promised","version":"4.0.3","description":"Build more expressive integration tests with some webdriver sugar for chai.js","main":"index.js","homepage":"https://b3nj4m.github.io/chai-webdriver","scripts":{"test":"mocha -R spec spec/*.spec.js"},"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"keywords":["chai","webdriver","integration-tests","chai-plugin"],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"contributors":[{"name":"Max Edmands"}],"license":"MIT","bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"peerDependencies":{"selenium-webdriver":"2.x","chai":"1.x"},"dependencies":{"q":"~1.1.2","webdriver-sizzle-promised":"~2.0.2"},"devDependencies":{"phantomjs":"^1.9.7-1","mocha":"~2.0.1","chai":"~1.10.0","selenium-webdriver":"~2.44.0"},"engines":{"node":">=0.10.0"},"_id":"chai-webdriver-promised@4.0.3","dist":{"shasum":"562030a9b05bb5505feb79f32cba5e543117cb06","tarball":"https://registry.npmjs.org/chai-webdriver-promised/-/chai-webdriver-promised-4.0.3.tgz","integrity":"sha512-SzIwBdLmq4hpv9xhO5HNXxJoHB9aVJLAXrjG47GniznCOtLhp9761XsZCgOv793OK2aaiG/BYi1gqnUmmOjHZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEtHP9dv5Poq+c5pVMAgdGy9ksBelLWeRlo+bry8ndJQIgKoVDJY0TYD6SYoSexFtyGMmv8BSbAIlzC+QAR+agnvI="}]},"_from":".","_npmVersion":"1.3.6","_npmUser":{"name":"b3nj4m","email":"ben.robbins@gmail.com"},"maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}]}},"readme":"Provides [selenium-webdriver](https://npmjs.org/package/selenium-webdriver) sugar for the [Chai](http://chaijs.com/) assertion library. Allows you to create expressive integration tests:\n\n```javascript\nexpect('.frequency-field').dom.to.contain.text('One time')\nexpect('.toggle-pane').dom.to.eventually.not.be.visible()\n```\n\n## What sorts of assertions can we make?\n\nAll assertions start with a [Sizzle-compatible css selector](http://sizzlejs.com/), for example:\n\n```javascript\nexpect('.list')\nexpect('div > h1')\nexpect('a[href=http://google.com]')\n```\n\nThen we add the dom flag, like so:\n\n```javascript\nexpect(selector).dom\n```\n\nFinally, we can add our assertion to the chain:\n\n### Text\nTest the text value of the dom against supplied string. Exact matches only.\n```javascript\nexpect(selector).dom.to.have.text('string')\n```\n\n### Text (contain)\nTest the text value of the dom against supplied string. Partial matches allowed.\n```javascript\nexpect(selector).dom.to.contain.text('string')\n```\n\n### Match\nTest the text value of the dom against the regular expression.\n```javascript\nexpect(selector).dom.to.match(/regex/)\n```\n\n### Text (regex)\nTest the text value of the dom against the regular expression. (Same as `match` above).\n```javascript\nexpect(selector).dom.to.have.text(/regex/)\n```\n\n### Displayed\nCheck whether or not the element is displayed (can be scrolled off-screen)\n```javascript\nexpect(selector).dom.to.be.displayed()\n```\n\n### Visible\nCheck whether or not the element is visible on-screen\n```javascript\nexpect(selector).dom.to.be.visible()\n```\n\n### Disabled\nCheck whether or not the form element is disabled\n```javascript\nexpect(selector).dom.to.be.disabled()\n```\n\n### Count\nTest how many elements exist in the dom with the supplied selector\n```javascript\nexpect(selector).dom.to.have.count(number)\n```\n\n### Style\nTest the CSS style of the element (exact string match).\n```javascript\nexpect(selector).dom.to.have.style('property', 'value')\n```\n\n### Value\nTest the value of a form field against supplied string.\n```javascript\nexpect(selector).dom.to.have.value('string')\n```\n\n### HTML Class\nTests that the element has `warning` as one of its class attributes.\n```javascript\nexpect(selector).dom.to.have.htmlClass('warning')\n```\n\n### Attribute\nTest an element's attribute value. Exact matches only. By omitting `value` test simply checks for existance of attribute.\n```javascript\nexpect(selector).dom.to.have.attribute('attribute', 'value')\n```\n\n### Not\nYou can also always add a `not` in there to negate the assertion:\n\n```javascript\nexpect(selector).dom.not.to.have.style('property', 'value')\n```\n\n\n### Larger and smaller\n\nSeveral of the assertion methods support the `larger` and `smaller` properties, which allow numeric comparisons. e.g. for `value()`:\n\nTest for a numeric value larger (>=) than 0.\n```javascript\nexpect('input[type=number]').dom.to.have.larger.value(0)\n```\n\nTest for a numeric value smaller (<=) than 0.\n```javascript\nexpect('input[type=number]').dom.to.have.smaller.value(0)\n```\n\nTest for a numeric value not larger (<) than 0.\n```javascript\nexpect('input[type=number]').dom.not.to.have.larger.value(0)\n```\n\nTest for a numeric value not smaller (>) than 0.\n```javascript\nexpect('input[type=number]').dom.not.to.have.smaller.value(0)\n```\n\nOther methods which support `larger` and `smaller`:\n\nTest for text with length larger (>=) than 0.\n```javascript\nexpect(selector).dom.to.have.larger.text(0)\n```\n\nTest for number of elements matching `selector` larger (>=) than 0.\n```javascript\nexpect(selector).dom.to.have.larger.count(0)\n```\n\nTest for css attribute value larger (>=) than 0 (ignores units).\n```javascript\nexpect(selector).dom.to.have.larger.style('width', 0)\n```\n\nTest for attribute value larger (>=) than 0.\n```javascript\nexpect(selector).dom.to.have.larger.attribute('offsetWidth', 0)\n```\n\n\n### Eventually\n\nYou can also add an `eventually` to tell `chai-webdriver-promised` to poll for the desired state up to the configured timeout (see Setup below):\n\n```javascript\nexpect(selector).dom.to.eventually.have.htmlClass('warning')\n```\n\n\n### Everything returns a promise\n\nAll of these assertions return a `Q` promise, so you can just return the promise if you're using mocha.\n\n\n## Setup\n\nSetup is pretty easy. Just:\n\n```javascript\n\n// Start with a webdriver instance:\nvar sw = require('selenium-webdriver');\nvar driver = new sw.Builder()\n  .withCapabilities(sw.Capabilities.chrome())\n  .build()\n\n//optional timeout in ms to use with eventually (defaults to 1000)\nvar timeout = 15000;\n//optional interval in ms to use when polling (defaults to 200)\nvar interval = 100;\n\n// And then...\nvar chai = require('chai');\nvar chaiWebdriver = require('chai-webdriver-promised');\nchai.use(chaiWebdriver(driver, timeout, interval));\n\n// And you're good to go!\nchai.describe('kitty test', function() {\n  chai.before(function(done) {\n    driver.get('http://github.com').then(done);\n  });\n  it('should not find a kitty', function() {\n    return chai.expect('#site-container h1.heading').dom.to.not.contain.text(\"I'm a kitty!\");\n  });\n});\n```\n\n## Contributing\n\nso easy.\n\n```bash\n$EDITOR index.js      # edit index.js\nnpm test              # run the specs\n```\n\n## License\n\nMIT.\n","maintainers":[{"name":"b3nj4m","email":"ben.robbins@gmail.com"}],"time":{"modified":"2022-06-13T05:51:21.936Z","created":"2014-10-03T18:35:53.796Z","1.0.0":"2014-10-03T18:35:55.402Z","1.1.0":"2014-10-08T00:23:40.501Z","2.0.0":"2014-10-17T21:45:27.275Z","2.0.1":"2014-10-20T16:30:21.984Z","3.0.0":"2014-12-15T23:13:45.441Z","3.0.1":"2014-12-15T23:36:36.733Z","4.0.0":"2014-12-17T17:34:29.041Z","4.0.1":"2014-12-17T17:38:14.412Z","4.0.2":"2014-12-17T18:26:17.808Z","4.0.3":"2014-12-17T18:41:10.617Z"},"readmeFilename":"README.md","homepage":"https://b3nj4m.github.io/chai-webdriver","keywords":["chai","webdriver","integration-tests","chai-plugin"],"repository":{"type":"git","url":"https://github.com/b3nj4m/chai-webdriver.git"},"contributors":[{"name":"Max Edmands"}],"author":{"name":"Ben Robbins","email":"ben.robbins@gmail.com"},"bugs":{"url":"https://github.com/b3nj4m/chai-webdriver/issues"},"license":"MIT","users":{"ivanoats":true,"larrychen":true}}