// An example configuration file. exports.config = { // The address of a running selenium server. seleniumAddress: 'http://localhost:4444/wd/hub', // Capabilities to be passed to the webdriver instance. capabilities: { 'browserName': 'firefox' }, // Spec patterns are relative to the current working directly when // protractor is called. specs: ['e2e/controllerTest.js'], // Options to be passed to Jasmine-node. jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 10000, }, //base URL for drupal //eg: baseUrl: 'http://192.168.2.99/drupalTask/', baseUrl: '', userName: '', // Drupal User name paasword: '', // Drupal Password //login for site ::https://github.com/angular/protractor/blob/master/spec/withLoginConf.js onPrepare: function() { browser.driver.get(baseUrl'); browser.driver.findElement(by.id('edit-name')).sendKeys(userName); browser.driver.findElement(by.id('edit-pass')).sendKeys(paasword); browser.driver.findElement(by.id('edit-submit')).click(); } };