Closed FrankyBoy closed 10 years ago
Please look at the first question in the FAQ: https://github.com/angular/protractor/blob/master/docs/faq.md
If that does not answer your question, please open a question on StackOverflow, or if you really believe you've found a bug with Protractor post a new issue here.
describe('Testing Protractor', function() {
var draftList;
var ptor;
beforeEach(function() {
ptor = protractor.getInstance();
ptor.ignoreSynchronization = true;
});
it('should count the number of drafts', function() {
ptor.get('#/');
draftList = element.all(by.repeater('newsletter in drafts'));
expect(draftList.count()).toEqual(2);
});
});
i've the same issue and @softvar solution works but i wonder if is safe set ignoreSynchronization = true
???
@juliemr - protractor in angular is not working with changing pages with synchronization
Error: Timed out waiting for Protractor to synchronize with the page after 11 seconds
option is making the ignore.Synchronization = true ; But then again its getting problem that angular is not define as its not synchronized
@juliemr - DO NOT TELL LOOK YOUR DOCUMENTATION AS THERE IS NOTHING on it and people get really helpless due to your poor documentation !!
I know that the timeout documentation isn't as complete as it could be, and we'd love suggestions for how to improve it. It's a tricky area, because the problem is often in the application being run - as the FAQ says, if there are $http
or $timeout
requests pending in your application, synchronization will fail. Sometimes, pages are using components that have continuous $timeout
requests that they don't even know about.
The good news is that I'm working on a different way of handling synchronization, which should make it easier to turn off and to see exactly what is happening. The way it will work is via a proxy before sending commands to webdriver. Stay tuned...
@FrankyBoy I hope the FAQ was able to help you!
@juliemr There is no #http or #timeout requests pending !! My application is SAP application and it has html login page with angular module and index page after login with an angular module ..... still the synchronization fails most of saying a temporary fix browser.ignoreSyncronization = true which will cause to many errors when we have more test cases in single test module
expecting a correct answer assap PLEASE DONT EVER SAY TO LOOK DOCUMENTATION i read it already and it wont help for this problem
Thankz
Jop, we had a bunch of $timeout
s in a loop (slideshow) which for obvious reasons failed to ever be considered "stable". Right now we (actually another department) have only one "problem" with the sync which is that they have auto-hiding notification messages (which use $timeout) which then obviously block until they disappear ... and their devs are like "We'll never use $interval with 1 repetition for that" so tough luck ;)
@thilinadinith srsly, learn some manners. also maybe provide some code to reproduce the issue, because right now you are just flaming around. If there really is an issue in protractor I can say from the past that it usually got treated with the appropriate seriousness.
protractor.getInstance() is unefined
Completely agree with @FrankyBoy that @thilinadinith needs to go easy. A better way to deal with dissatisfaction might be to fix the problem yourself. You are using free, open-source software, after all.
Thanks for your hard work, @juliemr .
Hi! I just picked up mobile testing here and having a go at our site with protractor (as we dearly miss decent automation on mobile), but couldn't get it to even load up properly (protractor, that is). The whole testcase is:
which results in a timeout with this output:
I also already tried increasing the timeout to bigger values but with no success.