<?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>Fabio Brandão - Blog &#187; Selenium</title>
	<atom:link href="http://www.fnbrandao.com.br/blog/category/programas/selenium/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fnbrandao.com.br/blog</link>
	<description></description>
	<lastBuildDate>Fri, 06 Jan 2012 15:22:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selenium + Wait for Ajax</title>
		<link>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/</link>
		<comments>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 18:56:56 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[waitforcondition]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=61</guid>
		<description><![CDATA[Hoje tive que fazer um teste automatizado que deveria obrigatoriamente esperar por um Ajax ser executado para continuar a sua execução.
Encontrei este link: http://agilesoftwaretesting.com/?p=111, que fala o seguinte:
Faça um método em java como:
 
public static void waitForAjax(Selenium selenium, String timeout) {
    String js_condition =
      "selenium.browserbot.getCurrentWindow().jQuery.active == 0";
 [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje tive que fazer um teste automatizado que deveria obrigatoriamente esperar por um Ajax ser executado para continuar a sua execução.</p>
<p>Encontrei este link: <a title="http://agilesoftwaretesting.com/?p=111" href="http://agilesoftwaretesting.com/?p=111" target="_blank">http://agilesoftwaretesting.com/?p=111</a>, que fala o seguinte:</p>
<p>Faça um método em java como:</p>
<p><code> </code></p>
<pre>public static void waitForAjax(Selenium selenium, String timeout) {
    String js_condition =
      "selenium.browserbot.getCurrentWindow().jQuery.active == 0";
    selenium.waitForCondition(js_condition, timeout);
}
</pre>
<p>O valor da variável js_condition dependerá do framework JS que está sendo utilizado no site. Basicamente ele segue o seguinte formato:</p>
<p><code>"selenium.browserbot.getCurrentWindow()." + library specific string + " == 0"</code></p>
<p>Onde a parte específica pode ser:</p>
<p><code>jQuery: "jQuery.active"<br />
Prototype: "Ajax.activeRequestCount"<br />
Dojo: "dojo.io.XMLHTTPTransport.inFlight.length"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2010/04/selenium-wait-for-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Selenium &#8211; Permission denied to get property Location.href</title>
		<link>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/</link>
		<comments>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 13:35:09 +0000</pubDate>
		<dc:creator>fabio</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Selenium]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Location.href]]></category>

		<guid isPermaLink="false">http://www.fnbrandao.com.br/blog/?p=22</guid>
		<description><![CDATA[Hoje tive um problema no Selenium, no qual o mesmo não conseguia verificar a url do navegador, jogando uma exceção com a seguinte mensagem:
Permission denied to get property Location.href
Procurando no google, encontrei o seguinte blog:
http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/
Este blog mencionava que o problema era causado por um redirect enviado pelo response do servidor. A solução desse blog foi [...]]]></description>
			<content:encoded><![CDATA[<p>Hoje tive um problema no Selenium, no qual o mesmo não conseguia verificar a url do navegador, jogando uma exceção com a seguinte mensagem:</p>
<p><code>Permission denied to get property Location.href</code></p>
<p>Procurando no google, encontrei o seguinte blog:</p>
<p><a href="http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/" target="_blank">http://www.woloszyn.org/2008/04/22/selenium-and-the-permission-denied-to-get-property-locationhref-problem/</a></p>
<p>Este blog mencionava que o problema era causado por um redirect enviado pelo response do servidor. A solução desse blog foi não utilizar o redirect.</p>
<p>Em outro site:</p>
<p><a href="http://www.nabble.com/Permission-denied-to-get-property-Location.href-td8081383.html" target="_blank">http://www.nabble.com/Permission-denied-to-get-property-Location.href-td8081383.html</a></p>
<p>Falava que só bastava utilizar o *chrome ou *iehta (no meu código estava sendo utilizado o *firefox). Após esta alteração, tudo voltou a funcionar normalmente.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fnbrandao.com.br/blog/2008/07/selenium-permission-denied-to-get-property-locationhref/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

