Home > Javascript Error > Error While Waiting For Protractor To Sync With The Page: "angular Could Not Be Found On The Window"

Error While Waiting For Protractor To Sync With The Page: "angular Could Not Be Found On The Window"

Contents

We need to figure out how to load angular when switching // between different single page angular apps so that protractor doesn't get confused. Will they need replacement? asked 1 year ago viewed 237 times active 1 year ago Blog Stack Overflow Podcast #91 - Can You Stump Nick Craver? When testing this flow with protractor (login to home page --> do something on home page), about 80% of the time Angular will give me: Failed: javascript error: document unloaded while have a peek here

I could click the sign-in button but its not redirecting to home page1How do I rid my protractor tests of this error: Error while waiting for Protractor to sync with the dashboardPage.vacanciesTab.click(); . . //load vacancies list page . Below is the code snippet: 67 it('should create new job listing', function () { 68 //Login As Admin To Access Vacancies Feature 69 loginAsManager(); . . //load manager's dashboard list page Standardisation of Time in a FTL Universe 2002 research: speed of light slowing down?

Error While Waiting For Protractor To Sync With The Page: "angular Could Not Be Found On The Window"

dashboardPage = new DashboardPage(); . vacanciesPage.addVacancyButton.click(); . . I can solve this problem with a sleep in "waitForNewAngularPage" immediately after the login code as such: TEST: helper.doSomeDBSetup(); helper.login(userEmail, password); helper.waitForNewAngularPage("home"); performTestOnThisPage(); Wait for page code: exports.waitForNewAngularPage = function (page)

How to reset DisplayName to empty using Sitecore PowerShell Extensions? It's always a different test. vacanciesPage.addVacancyButton.click(); . . Protractor Api How do I 'Join' two Structured Datasets?

I am receiving “JavascriptError: javascript error: document unloaded while waiting for result ” . Protractor Ignoresynchronization Not the answer you're looking for? Where is shared and final layout in the security Editor Are non-english speakers better protected from (international) Phishing? Puzzle that's an image: 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 /

Below is the code snippet: 67 it('should create new job listing', function () { 68 //Login As Admin To Access Vacancies Feature 69 loginAsManager(); . . //load manager's dashboard list page Browse other questions tagged javascript angularjs protractor or ask your own question. Join them; it only takes a minute: Sign up Navigating from one single page angular app to another with protractor gives “javascript error: document unloaded while waiting for result” up vote Were students "forced to recite 'Allah is the only God'" in Tennessee public schools?

Protractor Ignoresynchronization

Below are logs: Failures: [18:51:46][Step 4/4] 1) vacancies should create new job listing [18:51:46][Step 4/4] Message: [18:51:46][Step 4/4] [31m Failed: javascript error: document unloaded while waiting for result [18:51:46][Step 4/4] (Session javascript angularjs protractor share|improve this question asked Aug 13 '15 at 22:46 Gaurav Tandon 315 Run webdriver-manager update and try again. –alecxe Aug 13 '15 at 23:18 Error While Waiting For Protractor To Sync With The Page: "angular Could Not Be Found On The Window" If you look at the example this may help you find an alternative solution to your issue. Protractor Expectedconditions Linked 0 Navigating from one single page angular app to another with protractor gives “javascript error: document unloaded while waiting for result” Related 65How to select option in drop down protractorjs

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 Culture / Recreation navigate here Basically, our application consists of several connected single page angular apps. that worked for me! –cptdanko Aug 21 '15 at 6:05 add a comment| up vote 0 down vote I would suggesting having a look at ExpectedConditions in protractor. The Framework of a Riddle How do I 'Join' two Structured Datasets? "the Salsa20 core preserves diagonal shifts" What does a midi-chlorian look like? Getelementbyid

Why is JK Rowling considered 'bad at math'? Thanks. I don't think this is a neat solution to this problem. Check This Out jasmineNodeOpts: { defaultTimeoutInterval: 30000 } Also you can read more here, https://github.com/angular/protractor/blob/master/docs/timeouts.md share|improve this answer answered Oct 14 '15 at 23:36 Emile Muny 1 It's not that it's hitting

But it still fails. –Gaurav Tandon Aug 14 '15 at 4:34 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote accepted I was able to fix I am currently facing a problem. How to create a company culture that cares about information security?

I am currently rewriting a lot of tests using this pattern as was constantly having intermittent test failures on our CI build server.

Who is the highest-grossing debut director? Is it legal to bring board games (made of wood) to Australia? And its an intermittent issue. Get the weekly newsletter!

dashboardPage = new DashboardPage(); . Is this homebrew elemental spear balanced? var vacanciesUrl = browser.baseUrl + '#/vacancies'; . this contact form What are the legal and ethical implications of "padding" pay with extra hours to compensate for unpaid work?

Quantifiers in lambda calculus Do jihadists returning to Örebro, Sweden get given psychological help? Not the answer you're looking for? asked 1 year ago viewed 1237 times active 1 year ago Blog Stack Overflow Podcast #91 - Can You Stump Nick Craver? How do spaceship-mounted railguns not destroy the ships firing them?

vacanciesPage = new VacanciesPage(); . When is it okay to exceed the absolute maximum rating on a part? more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed