title: cucumber stepdefinition file is not recognized by the protractor cucumber config file
body: <p>unable to execute the steps in the step definition file</p>
  
  <p>i tried the solutions present in the google but none of them are answer my questions.</p>
  
  <h2>my Config file</h2>
  
  <pre><code>  //seleniumAddress: 'http://localhost:4444/wd/hub',
    directConnect: true,
    //specs: ['/Users/bharaniravisankar/Desktop/PRO/SPECS/TEST.JS'],
    framework: 'custom',
    // path relative to the current config file
    frameworkPath: require.resolve('protractor-cucumber-framework'),
    capabilities: {
      'browserName': 'chrome'
    },
    specs: [
      '/Users/bharaniravisankar/Desktop/PRO/Feature/test.feature'
    ],
  
    cucumberOpts: {
      require: '/Users/bharaniravisankar/Desktop/PRO/Feature/Step Definition/login.js',
      //tags: false,
      //format: 'pretty',
      profile: false,
      'no-source': true
    }
  
  };
  </code></pre>
  
  <h2>my console log</h2>
  
  <pre><code>? Given User navigate to Home Page
         Undefined. Implement with the following snippet:
  
           Given('User navigate to Home Page', function () {
             // Write code here that turns the phrase above into concrete actions
             return 'pending';
           });
  
     ? When User enter email and other details
         Undefined. Implement with the following snippet:
  
           When('User enter email and other details', function () {
             // Write code here that turns the phrase above into concrete actions
             return 'pending';
           });
  
     ? And click on Submit button
         Undefined. Implement with the following snippet:
  
           When('click on Submit button', function () {
             // Write code here that turns the phrase above into concrete actions
             return 'pending';
           });
  
     ? Then Login is created sucessfully
         Undefined. Implement with the following snippet:
  
           Then('Login is created sucessfully', function () {
             // Write code here that turns the phrase above into concrete actions
             return 'pending';
           });
  
     ✔ After # CONG.js/node_modules/protractor-cucumber-framework/lib/resultsCapturer.js:26
  
  1 scenario (1 undefined)
  4 steps (4 undefined)
  </code></pre>
  
  <h2>Stepdefinition file</h2>
  
  <pre><code>var { Given, When, Then } = require("cucumber");
  
  module.exports = function () {
  
      this.Given(/^User navigate to Home Page$/, async function () {
       // this.When('User enter email and other details', function () {
  
          //launch AWS portal
          browser.get('https://portal.aws.amazon.com/billing/signup#/start');
  
          //Maximize the browser window
          browser.driver.manage().window().maximize();
  
          //Check the title of the Webpage
         expect(await browser.getTitle()).toEqual('AWS Console - Signup');
  
  
        });
  
        this.When(/^User enter email and other details$/, function () {
        //  this.When('User enter email and other details', function () {
  
          element(by.model('credentials.email')).sendKeys('bharaniravi36@gmail.com')
          element(by.model('credentials.password')).sendKeys('Feb%1992');
          element(by.model('credentials.rePassword')).sendKeys('Feb%1992');
          element(by.model('credentials.fullName')).sendKeys('bharaniravi85');
  
        });
  
  
  
        //this.When('click on Submit button', function () {
  
          this.When(/^click on Submit button$/, function () {
  
          element(by.xpath("(//input[@class='a-button-input'])[1]")).click();
        });
  
        this.Then(/^Login is created sucessfully$/, function () {
  
          expect(browser.getTitle()).toEqual('AWS Console - Signup');
          element(by.id('company')).sendKeys('POLI');
  
          //click on country drop down
          element(by.model("address.countryCode")).click();
          element(by.xpath("//option[@label='American Samoa']")).click();
                // add sleep to give a time for te options to reveal
                browser.sleep(3000)
        });
    };
  </code></pre>
  
  <p>in my research i didnt miss anything in my setup and every thing is setup in my system and required dependencies are downloaded.</p>