You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.MD
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,6 +234,58 @@ module.exports = function () {
234
234
};
235
235
```
236
236
237
+
### Applitools Eyes!
238
+
The Applitools Eyes Selenium JavaScript SDK allows you to easily add visual checkpoints to your JavaScript Selenium tests.
239
+
It takes care of getting screenshots of your application from the underlying WebDriver, sending them to the Eyes server for validation and failing the test in case differences are found.
240
+
To use Applitools Eyes specifying an ApiKey from Aplitools using a `selenium-cucumber-js.json` file at the root of your project
241
+
242
+
For example the following configuration could be used with an increased timeout which allows enough time for viusual checks:
243
+
244
+
```json
245
+
{
246
+
"eye_key": "Your_Api_Key",
247
+
"timeout": 50000
248
+
}
249
+
```
250
+
251
+
And its usage within page Objects:
252
+
253
+
```js
254
+
module.exports= {
255
+
256
+
url:'https://applitools.com/helloworld',
257
+
258
+
elements: {
259
+
clickme:by.tagName('button'),
260
+
searchResultLink:by.css('div.g > h3 > a')
261
+
},
262
+
263
+
264
+
applitools_Eyes_Example:function () {
265
+
266
+
// Start the test and set the browser's viewport size to 800x600.
267
+
eyes.open(driver, 'Hello World!', 'My first Javascript test!',
268
+
{width:800, height:600});
269
+
270
+
// Navigate the browser to the "hello world!" web-site.
0 commit comments