-
Notifications
You must be signed in to change notification settings - Fork 2.3k
configuration is not working #14
Comments
inside a beforeEach block. This may help #14
I haven't played with this on Windows yet, so it's possible that this is a windows-specific issue. The changes you made to the configuration file look fine to me. I've pushed a commit that might help with this. |
still problem before open the browser . all testcases are trying to execute . then browser opened .. getting error in timers.js:103 Command duration or timeout: 1.50 seconds Process finished with exit code 1 added in to following statement in to "onProtractor.js"describe('angularjs homepage', function() {
|
I've tried the examples on windows and I can't reproduce your problem - possibly it's related to windows XP? |
Hi, Closing this as obsolete, please reopen if you're still having issues. |
Hi, The error message provided at the end of the test is: "timeout: timed out after 5000 msec waiting for spec to complete" Switching the test to IE loads the browser up fast enough to catch the first test and all tests run successfully. When I tried to apply this to my own project with only the lib_spec file, I found that the entire test ran before the browser could launch (0.07 seconds). The browser does launch a second or so later and looks like it's attempting to display the target app, but selenium shut's it down before the page can be loaded. In this case, the error message is: "TypeError: Cannot call method 'get' of undefined." at line 21, which is: The final output on the test is: "3 tests, 3 assertions, 2 failures" so it looks like the first test in the file ran successfully. In this case, switching from Chrome to IE still causes the same delay and test failure. Please let me know if you need any additional information and thanks for any help you can provide. |
Reopening this issuing and closing #43 For your own project, do you have the following lines?
As for the slowness, sounds like that might just be a webdriver on IE issue. Any idea if this same slowness occurs with a webdriverjs test that doesn't use protractor? e.g. just a file that does
|
Hi, Note that all this behavior is exhibited using the Chrome driver, not the IE driver. After fixing the file, switching to the IE driver does not exhibit this behavior. All tests from my spec ran successfully! Here is my spec file:
The test results are as follows:
As for the simple webdriverjs as a spec file, it appears to exhibit the same behavior. I took the sample you provided and loaded it as a spec with no additional tests (though I had to rename the first variable to webdriver). The test completes successfully in 0.001 seconds, and the browser loads immediately after. Was this how you intended me to test it? Adding the following test logic produces the same behavior:
|
I'm having trouble similar to the original issue above. require('protractor/jasminewd'); My spec has the above lines, but when I call ptor.get('/'), it says 'Cannot call method of 'get' undefined at null. |
I've fixed a couple issues with timeout behavior - any issues remaining after 0.8.0? |
I can't start my tests with I need to run it as Then it works. |
I'm going to assume this is a windows issue. Will get my hands on one and do some tests. |
@ DOwen55 : can you please provide you same examples completely . Still I have an problem to run the protractor in chrome also |
Success! I've downloaded the latest version, installed all the necessary packages and can now confirm that both Chrome & IE run all tests after the browser has loaded. Protractor is now waiting for the browser to start. Thank you! calystoramesh, I'm not sure what samples you're looking for. I reported these issues using all the samples and test code included in the protractor package available here. The only modification I made was to add the spec file described above. |
Today, I started Setup the Protractor , Step 1: npm install -g protractor (Version 0.9.0) step 6 : run selenium server " Step 7: run the Protractor conf file getting error : C:\Documents and Settings\sweet\Application Data\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\webdriver\promise.js:1542 Process finished with exit code 8 please help me to set up the protractor NOTE : NO CHANGE IN "protractorConf.js" // An example configuration file. // Capabilities to be passed to the webdriver instance. // Spec patterns are relative to the current working directly when // Options to be passed to Jasmine-node. |
@calystoramesh In your step number 6, I believe that you need to provide the selenium jar file with the browser driver (you set the path for chrome driver, and the error is looking for iedriver). Like this: Also, this can be configured in the protractorConf.js file. Here is youtube vid that helped me get started: |
Closing this again as obsolete. |
HI, Am experiencing the same problem. var template = new Error(this.message); |
I am new to angular JS testing , I followed you instruction for setup the protractor with sample. While on execute the testcases I getting a error
C:\Documents and Settings\sweet\Application Data\npm\node_modules\protractor\bin>protractor e:\protractor_workspace\protractor-master\example\protractorConf.js
Using the selenium server at http://localhost:4444/wd/hub
FF
Failures:
Message:
TypeError: Cannot call method 'get' of undefined
Stacktrace:
I changed browser name and path only in "protractorConf.js".
capabilities: {
'browserName': 'firefox'
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
// Spec folders are relative to the current working directly when
// protractor is called. This can be folders or files.
specFolders: ['e:/protractor_workspace/protractor-master/example/onProtractor.js'],
isVerbose: false,
showColors: true,
includeStackTrace: true
}
};
let me know I made any mistake ?
The text was updated successfully, but these errors were encountered: