Home > Is Not > Protractor Undefined Is Not A Function

Protractor Undefined Is Not A Function


share|improve this answer answered Aug 28 '14 at 2:18 flaviomeira10 382312 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Not the answer you're looking for? Thank you guys. Version bump for incompatible API changes.">Instead of having tests run with the protractor runner need to require() … the protractor library, publish it to the global namespace. http://odenews.net/is-not/undefined-is-not-a-function-javascript.html

Please let me know your comments https://github.com/jintoppy/protractor-html-screenshot-reporter spenoir commented May 30, 2014 It might be an idea to add the folder creation to docs as I tripped up on that too It will make sense. It sounds like you're using a pretty old tutorial - getInstance is long deprecated and was removed two versions ago. A pilot's messages more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts http://stackoverflow.com/questions/28708406/object-is-not-a-function-error-when-trying-to-use-page-object-with-protractor

Protractor Undefined Is Not A Function

Reload to refresh your session. Why am I getting different p-values out of a z-table than the ones described in my textbook? We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Consider making a separate question if you need help with it.

You want to 'getText' to be called on the element, not on the result of expect Should be: expect(ptor.findElements(protractor.By.selectedOption('data.readingType').getText()). So, make sure you have installed latest version of jasmine-reporters. Can an NPC healer be part of a party of PCs, and if so, how does that work? Protractor Page Object Is Not A Function aricearice referenced this issue Jul 17, 2014 Closed How to similulate mouse over events such as click a link on mouse over #159 bloveridge commented Jul 25, 2014 [email protected] supports Jasmine

juliemr added the question label May 16, 2014 Member juliemr commented May 16, 2014 You do not need angular-mocks.js. Make sure you create the directory whichever you are referring as the output in reporter options. Terms Privacy Security Status Help You can't perform that action at this time. http://stackoverflow.com/questions/25518874/protractor-page-objects-typeerror-object-object-has-no-method-methodname You signed out in another tab or window.

Required fields are marked *Comment Name * Email * Website Related Posts Bootstrap image thumnail active border fail AngularJS clear input not working on data change webdriver manager execvp(): No such Protractor Typeerror Is Not A Function Make sure that you have installed the mkdirp package as well as the other jasmine 2.x and jasmine-reporters 2.X packages. Why does the sum of a partition of 1 not equal 1? If I revert jasmine-reporters back to 0.4.1 it works splendidly.

Protractor Is Not A Function

I did research and find out that i need angular-mocks.js file in the index.html. https://github.com/angular/protractor/issues/146 Reasons: Rhino attempt: java is not defined PhantomJs attempt: window is not defined NodeJS attempt: EACCES, permission denied '/Users/TestReports' — Reply to this email directly or view it on GitHub #60 Protractor Undefined Is Not A Function Thank you so much! Element .then Is Not A Function We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 419 Star 6,071 Fork 1,456 angular/protractor Code Issues 158 Pull requests 11 Projects get redirected here That said, it only supports Jasmine 2.x, not Jasmine 1.x which is what Protractor uses. It also has nifty features like touchstone builds and allows you to throttle concurrency better than grunt. Member juliemr commented Jul 22, 2013 Thanks for catching this - the error seems to be that example/onProtractor.js is using the local version of protractor, not global (it uses var protractor Protractor Failed Is Not A Function

toEqual('No readings after date')); it says TypeError: Object [object Object] has no method 'getText' apankov1 commented Oct 4, 2013 @cristifilip you want to use promise your code will should look something Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. Member juliemr commented Oct 4, 2013 You have some parentheses off. navigate to this website Notes: I'm using Lineman Angular Template so maybe it's calling $q.all somewhere and causing the issue to surface?

Reply sdeering says: April 20, 2014 at 4:54 am No worries mate, glad it helped 🙂 Reply John Joe Jackson five says: April 21, 2014 at 9:32 am `For some reason Protractor Fn Is Not A Function spatchamatla commented Apr 15, 2015 Sure,Thanks @spenoir for your suggestions and input guy-mograbi-at-gigaspaces commented May 19, 2015 great thread. What are some counter-intuitive results in mathematics that involve only finite objects?

Member mgol commented Jul 8, 2014 The previous version of jasmine-reporters attached the reporters directly to the jasmine object; now it attaches to its own export which is way better.

Check out the tutorial at http://angular.github.io/protractor/#/tutorial to get started with Protractor. Closes #36. spatchamatla commented Apr 15, 2015 @bloveridge @spenoir , i downgraded to [email protected] and used the below //For junit output reports var reporters = require('jasmine-reporters'); var capsPromise = browser.getCapabilities(); capsPromise.then(function (caps) { Protractor Login Example My workaround for the time being has just been to execute specs using ./node_modules/protractor/bin/protractor config/spec-e2e.js as can be seen here davemo commented Jul 20, 2013 As an additional discussion point, I'm

On to the next thing! –Dylface Feb 23 '15 at 1:58 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote There is at least one problem: Could you be so kind and guide me through the steps so that I can fix this problem? asked 1 year ago viewed 5790 times active 1 year ago Related 4576JavaScript function declaration syntax: var fn = function() {} vs function fn() {}0TypeError: undefined is not a function Angularjs0Working my review here Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc.

There are various options * to control where the results are written, and the default values are * set to create as few .xml files as possible. Can you take a look at the new version and see if it fixes your issue? PS: It's not the full error output –flaviomeira10 Aug 27 '14 at 13:45 It is what is says, the element is not found at the testing page. As for this topic, close it by accepting the answer (checkbox on the left).

I called it there but that didn't solved my problem. Version bump for incompatible API changes. 90f0a94 juliemr closed this in 90f0a94 Aug 9, 2013 kbaltrinic pushed a commit to kbaltrinic/protractor that referenced this issue May 2, 2014 ayashpatrov commented Jun 23, 2016 • edited I have installed protractor globally, and after locally. onPrepare: function () { jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({ savePath: '..', consolidateAll: false })); }, jasmineNodeOpts: { showColors: true, defaultTimeoutInterval: 60000, print: function() {} } }; Now jasmine-reporters is working fine to me.

jkmurthy commented Jul 3, 2014 @juliemr Tired all options listed in samples. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 419 Star 6,071 Fork 1,456 angular/protractor Code Issues 158 Pull requests 11 Projects Reply Ewan Valentine says: March 31, 2015 at 6:38 pm Ahhhh you life saver! Life from a dead space whale Is it possible to change the kernel in a UNIX/Linux system?

I created a file describing the page object and other using this page object to test a page. //page object var LoginPage = function() { this.userInput = browser.driver.findElement(by.id('username')); this.pwdInput = browser.driver.findElement(by.id('password')); How are brakes cooled on heavy aircraft? Not the answer you're looking for?