when running protractor 9 out of 10 times it hangs. 1 out of 10 times it 
works normally. no idea whats going wrong. my spec only opens the page in 
browser (and pauses, but even without pause i am getting same behaviour)

node v0.12.2
protractor 2.0.0
jasmine 2.2.1

webdriver: latest (webdriver-manager update says its up to date ... )
os: win7 64
conf.js

exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['homepage.js'],
framework: 'jasmine2',
capabilities: {
"browserName": "chrome",
"chromeOptions": {
binary: "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
args: [],
extensions: []
}
}
};
spec.js

describe('home page', function() {
it('should show frontpage', function() {
browser.get('https://test2.e-invite.eu/admin/');
browser.pause();
});
});
error when it fails:

C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data_inviter>protractor 
tests\protractor\conf.js
Using the selenium server at http://localhost:4444/wd/hub
[launcher] Running 1 instances of WebDriver
Started
A Jasmine spec timed out. Resetting the WebDriver Control Flow.
F

Failures:
1) home page should show frontpage
Message:
Error: Timeout - Async callback was not invoked within timeout specified by 
jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by 
jasmine.DEFAULT_TIMEOUT_INTERVAL.
at Timer.listOnTimeout (timers.js:110:15)

1 spec, 1 failure
Finished in 30.028 seconds






log with --troubleshoot option on:

C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\data\_inviter>protractor 
 tests

\protractor\conf.js --troubleshoot

DEBUG - Running with --troubleshoot

DEBUG - Protractor version: 1.8.0

DEBUG - Your base url for tests is http://test2.e-invite.eu/

Using the selenium server at http://localhost:4444/wd/hub

[launcher] Running 1 instances of WebDriver

DEBUG - WebDriver session successfully started with capabilities { caps_:

   { platform: 'XP',

     acceptSslCerts: true,

     javascriptEnabled: true,

     browserName: 'chrome',

     chrome: { userDataDir: 
'C:\\Users\\x075842\\AppData\\Local\\Temp\\scoped_di

r10276_19351' },

     rotatable: false,

     locationContextEnabled: true,

     mobileEmulationEnabled: false,

     'webdriver.remote.sessionid': 'c8eda084-daf9-4030-a5cf-dd16d052b21a',

     version: '41.0.2272.101',

     takesHeapSnapshot: true,

     cssSelectorsEnabled: true,

     databaseEnabled: false,

     handlesAlerts: true,

     browserConnectionEnabled: false,

     nativeEvents: true,

     webStorageEnabled: true,

     applicationCacheEnabled: false,

     takesScreenshot: true } }

Started

A Jasmine spec timed out. Resetting the WebDriver Control Flow.

The last active task was:

WebDriver.navigate().to(data:text/html,<html></html>)

    at [object Object].webdriver.WebDriver.schedule (C:\...\Ro
aming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\
webdriver.js:345:15)

    at [object Object].webdriver.WebDriver.Navigation.to (C:\...
\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdr
iver\webdriver.js:1031:23)

    at [object Object].webdriver.WebDriver.get (C:\...\Roaming
\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\webdr
iver.js:723:26)

    at [object Object].Protractor.get (C:\...\Roaming\npm\node
_modules\protractor\lib\protractor.js:443:15)

    at Env.<anonymous> (C:\homepage.js:6:13)   <<<---- this is my browser.
get('admin/'); line

    at C:\...\Roaming\npm\node_modules\protractor\node_modules
\jasminewd2\index.js:95:14

    at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (C:\...
\Roaming\npm\node_modules\protractor\node_modules\selenium-webdrive
r\lib\webdriver\promise.js:1654:20)

    at [object Object].webdriver.promise.ControlFlow.runEventLoop_ (C:\...
a\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver
\lib\webdriver\promise.js:1518:8)

    at [object Object].wrapper [as _onTimeout] (timers.js:265:14)

F


Failures:

1) home page should show frontpage

  Message:

    Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

  Stack:

    Error: Timeout - Async callback was not invoked within timeout 
specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.

        at Timer.listOnTimeout (timers.js:110:15)


1 spec, 1 failure

Finished in 30.009 seconds




regards, Peter

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to