<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Protractor on Maarten on IT</title><link>https://maarten.mulders.it/categories/protractor/</link><description>Recent content in Protractor on Maarten on IT</description><generator>Hugo</generator><language>en-us</language><copyright>&amp;copy; 2013 - 2026 Maarten Mulders</copyright><lastBuildDate>Mon, 27 Sep 2021 21:26:41 +0200</lastBuildDate><atom:link href="https://maarten.mulders.it/categories/protractor/index.xml" rel="self" type="application/rss+xml"/><item><title>Timing in Protractor tests</title><link>https://maarten.mulders.it/2014/06/timing-in-protractor-tests/</link><pubDate>Fri, 27 Jun 2014 08:05:40 +0200</pubDate><guid>https://maarten.mulders.it/2014/06/timing-in-protractor-tests/</guid><description>&lt;p&gt;Ever noticed that annoying error while running your Protractor tests:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Error while waiting for Protractor to sync with the page: {}.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Especially the two brackets are annoying, because they suggest more information &lt;em&gt;might&lt;/em&gt; be available but it is just hidden for you.&lt;/p&gt;
&lt;p&gt;The good news is, the fix is rather easy. It turns out that Protractor expects your application to have an &lt;code&gt;data-ng-app&lt;/code&gt; attribute on the HTML &lt;code&gt;body&lt;/code&gt; element.&lt;/p&gt;
&lt;p&gt;My application does not have that, since the Angular application is just a part of my page. So in my Protractor config, I have to add an option to tell Protractor where to find the Angular application:&lt;/p&gt;</description></item></channel></rss>