Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Unable to launch safari and IE browser #5382

@vikash0101

Description

@vikash0101

Hi there!

Thanks for submitting an issue to Protractor.

To help us help you better, please do the following before submitting an issue:

  1. Review the questions section of CONTRIBUTING.md.
  2. Make sure you are not asking a usage or debugging question. If you are, use StackOverflow, Google Group discussion list, or Gitter to get help.
  3. Provide a minimally reduced test case. This makes it much more likely that your bug will be fixed. Protractor has a test Angular application available at http://www.protractortest.org/testapp which you can use for the reproducible test case.
  4. Fill in the information that corresponds to your type of issue below.
  5. Delete this intro and any unrelated text 😄 (if you do not we'll assume you haven't read these instructions and automatically close the issue.)

Bug report

  • Node Version: v10.16.3
  • Protractor Version: Version 5.4.2
  • Angular Version: 7.2.4
  • Browser(s): safariand ie-version 11
  • Operating System and Version win32 x64
  • Your protractor configuration file-
    // Protractor configuration file, see link for more information
    // https://github.com/angular/protractor/blob/master/lib/config.ts

let InputData = require ('../e2e/calci.Input.data.json');
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
// 'autoStartStopServer': true,
allScriptsTimeout: 11000,
specs: ['E:/Testing/Protractor_Projects/TestUsing_TS/SuperCalculator/e2e/TestCase.ts',
],
capabilities: {
'browserName': 'safari',
},
params:{
InputData: InputData
},
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval:250000,
print: function() {}
},
onPrepare() {
//browser.driver.manage().window().maximize();
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: {
displayFailuresSummary: true,
displayFailuredSpec: true,
displaySuiteNumber: true,
displaySpecDuration: true,
displayStacktrace: true } }));
},
};

  • A relevant example test

  • Output from running the test:-
    PS E:\Testing\Protractor_Projects\TestUsing_TS\SuperCalculator\e2e> protractor
    [12:58:48] I/launcher - Running 1 instances of WebDriver
    [12:58:48] I/local - Starting selenium standalone server...
    [12:58:58] I/local - Selenium standalone server started at http://20.198.150.134:54431/wd/hub
    [12:58:59] E/launcher - Unable to create new service: SafariDriverService
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
    System info: host: 'INPF0Y6EBA', ip: '20.198.150.134', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '13.0.1'
    Driver info: driver.version: unknown
    [12:58:59] E/launcher - SessionNotCreatedError: Unable to create new service: SafariDriverService
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
    System info: host: 'INPF0Y6EBA', ip: '20.198.150.134', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '13.0.1'
    Driver info: driver.version: unknown
    at Object.checkLegacyResponse (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:546:15)
    at parseHttpResponse (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:509:13)
    at doSend.then.response (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\http.js:441:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    From: Task: WebDriver.createSession()
    at Function.createSession (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver.js:769:24)
    at createDriver (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\index.js:170:33)
    at Builder.build (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\index.js:635:14)
    at Local.getNewDriver (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\built\driverProviders\driverProvider.js:53:33)
    at Runner.createBrowser (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\built\runner.js:195:43)
    at q.then.then (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\built\runner.js:339:29)
    at _fulfilled (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54)
    at C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:863:30
    at Promise.promise.promiseDispatch (C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:796:13)
    at C:\Users\vvicky.EAD\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:604:44
    [12:58:59] E/launcher - Process exited with error code 199

  • Steps to reproduce the bug
    1.> create any angular-protractor project.
    2.> run the project by launching chrome browser
    3.>change the browser name in config file, "safari" or "ie"

  • The URL you are running your tests against (if relevant)
    "http://juliemr.github.io/protractor-demo/"

Feature Request

  • Reasons for adopting new feature-
    launching different browsers for my project.

  • Is this a breaking change? (How will this affect existing functionality)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions