<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>selenium Archives - Pietari Heino&#039;s personal website</title>
	<atom:link href="https://www.extreg.com/blog/tag/selenium/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.extreg.com</link>
	<description></description>
	<lastBuildDate>Tue, 19 Dec 2017 21:38:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.7</generator>
<site xmlns="com-wordpress:feed-additions:1">99365322</site>	<item>
		<title>E2E testing with headless Chrome and Nightwatch</title>
		<link>https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/</link>
					<comments>https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/#comments</comments>
		
		<dc:creator><![CDATA[Pietari]]></dc:creator>
		<pubDate>Wed, 05 Jul 2017 16:05:55 +0000</pubDate>
				<category><![CDATA[random]]></category>
		<category><![CDATA[chromedriver]]></category>
		<category><![CDATA[e2e]]></category>
		<category><![CDATA[end-to-end testing]]></category>
		<category><![CDATA[headless chrome]]></category>
		<category><![CDATA[nightwatch]]></category>
		<category><![CDATA[selenium]]></category>
		<guid isPermaLink="false">https://extreg.com/?p=209</guid>

					<description><![CDATA[<p>Setting up End-to-End testing (for Nyssetutka.fi) using Nightwatch.js, Selenium and ChromeDriver and running the tests in a headless Chrome instance was super easy. Update 12/2017: since many people are arriving here from Google, please do share any and all ideas you have if you think this post could be improved somehow. Thanks! Since I didn&#8217;t ... <span class="more"><a class="more-link" href="https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/">[Read more...]</a></span></p>
<p>The post <a rel="nofollow" href="https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/">E2E testing with headless Chrome and Nightwatch</a> appeared first on <a rel="nofollow" href="https://www.extreg.com">Pietari Heino&#039;s personal website</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Setting up End-to-End testing (for <a href="https://nyssetutka.fi">Nyssetutka.fi</a>) using Nightwatch.js, Selenium and ChromeDriver and running the tests in a headless Chrome instance was super easy.</p>
<p><em><strong>Update 12/2017:</strong> since many people are arriving here from Google, please do share any and all ideas you have if you think this post could be improved somehow. Thanks!</em></p>
<p>Since I didn&#8217;t find any information whether this could actually work already (is the headless flag still buggy or something, has ChromeDriver added support etc.), here are my findings. <em>All I had to configure</em> was to add a CLI arg for Chrome to my Nightwatch configuration. Useful parts below.</p>
<pre>selenium: {
  start_process: true,
  server_path: require('selenium-server').path,
  host: '127.0.0.1',
  port: 4444,
  cli_args: {
    'webdriver.chrome.driver': require('chromedriver').path,
  },
},
chrome: {
  desiredCapabilities: {
    browserName: 'chrome',
    javascriptEnabled: true,
    acceptSslCerts: true,
    chromeOptions: {
      args: [ 'headless' ]
    }
  }
}
</pre>
<p>Version information:</p>
<p>./node_modules/.bin/nightwatch -v<br />
nightwatch v0.9.16</p>
<p>./node_modules/.bin/chromedriver -v<br />
ChromeDriver 2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57)</p>
<p>google-chrome &#8211;version<br />
Google Chrome 59.0.3071.115</p>
<p>I&#8217;m running Ubuntu 17.04.</p>
<p>The post <a rel="nofollow" href="https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/">E2E testing with headless Chrome and Nightwatch</a> appeared first on <a rel="nofollow" href="https://www.extreg.com">Pietari Heino&#039;s personal website</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.extreg.com/blog/2017/07/e2e-testing-headless-chrome-nightwatch/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">209</post-id>	</item>
	</channel>
</rss>
