<?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/"
	>

<channel>
	<title>Techy Things &#187; webdriver</title>
	<atom:link href="http://tech.yipp.ca/tag/webdriver/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>Ghost process after running PhantomJS</title>
		<link>http://tech.yipp.ca/automation/ghost-process-running-phantomjs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ghost-process-running-phantomjs</link>
		<comments>http://tech.yipp.ca/automation/ghost-process-running-phantomjs/#comments</comments>
		<pubDate>Wed, 02 Mar 2016 20:00:06 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[automation]]></category>
		<category><![CDATA[phantomjs]]></category>
		<category><![CDATA[selenium]]></category>
		<category><![CDATA[webdriver]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=2253</guid>
		<description><![CDATA[<p>Spooky ! &#160; Short term solution $&#62; ps -ef &#124; grep phantom &#124; grep -v grep &#124; awk '{print $2}' &#124; xargs kill -9 &#160; Better long-term solution Using driver.quit() : driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any']) driver.get('https://'&#46;&#46;&#46;</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/automation/ghost-process-running-phantomjs/">Ghost process after running PhantomJS</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<h2>Spooky !</h2>
<p><a href="http://tech.yipp.ca/files/2016/03/phantomjs-ghost-processes.png"><img class="alignnone wp-image-2256 size-full" src="http://tech.yipp.ca/files/2016/03/phantomjs-ghost-processes.png" alt="list of dangling phantomjs processes" width="837" height="369" /></a></p>
<p>&nbsp;</p>
<h2>Short term solution</h2>
<pre>$&gt; ps -ef | grep <em>phantom</em> | grep -v grep | awk '{print $2}' | xargs kill -9</pre>
<p>&nbsp;</p>
<h2>Better long-term solution</h2>
<p>Using driver.<strong>quit() :</strong></p>
<pre>driver = webdriver.PhantomJS(service_args=['--ignore-ssl-errors=true', '--ssl-protocol=any'])
driver.get('https://' + str(host) + '/')
...
<strong><span style="color: #ff6600;">driver.quit()</span></strong></pre>
<p>&nbsp;</p>
<h2>What if you use .quit() but still see them hanging around?</h2>
<p>There is a <strong>bug</strong> affecting versions around <strong>1.9.8</strong> where there is no cleanup going on. The solution is to upgrade to <em><span style="color: #ff6600;">PhantomJS 2.0.0</span></em> or more recent. See this <a href="https://github.com/detro/ghostdriver/issues/162" target="_blank">github issue</a>.</p>
<p>The post <a rel="nofollow" href="http://tech.yipp.ca/automation/ghost-process-running-phantomjs/">Ghost process after running PhantomJS</a> appeared first on <a rel="nofollow" href="http://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://tech.yipp.ca/automation/ghost-process-running-phantomjs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
