Instantly share code, notes, and snippets.

anonymous /gist1.m Secret
Created Sep 29, 2017

Embed
What would you like to do?
generated automatically from #selenium on freenode
PS C:\Automation\protractor_fun\simple_test> ..\node_modules\.bin\cucumber-js features\test.feature
F-.F----.
Failures:
1) Scenario: can_login # features\test.feature:3
x When I login to system as admin # features\step_definitions\testSteps.js:62
ReferenceError: browser is not defined
at CustomWorld.<anonymous> (C:\Automation\protractor_fun\simple_test\features\step_definitions\testSte
ps.js:63:9)```
[10:06]
```Feature: System
Scenario: can_login
When I login to system as admin
Then I will reach the post login page```
[10:07]
```
var seleniumWebdriver = require('selenium-webdriver');
var {defineSupportCode} = require('cucumber');
When('I login to system as admin', {timeout: 60*1000}, function(callback) {
browser.get('<http://system.net/#/>');
Login('user, 'pw');
browser.controlFlow().execute(callback);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment