<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Selecting Unnamed Pop-up Windows in Selenium</title>
	<atom:link href="http://testautomationblog.com/2009/10/08/selecting-unnamed-pop-up-windows-in-selenium/feed/" rel="self" type="application/rss+xml" />
	<link>http://testautomationblog.com/2009/10/08/selecting-unnamed-pop-up-windows-in-selenium/</link>
	<description>On software test automation and quality assurance</description>
	<lastBuildDate>Thu, 15 Jul 2010 06:41:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lericain59</title>
		<link>http://testautomationblog.com/2009/10/08/selecting-unnamed-pop-up-windows-in-selenium/comment-page-1/#comment-2935</link>
		<dc:creator>lericain59</dc:creator>
		<pubDate>Fri, 16 Apr 2010 10:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://testautomationblog.com/?p=133#comment-2935</guid>
		<description>Here are the steps I took for Selenium IDE:

1. find the &lt;a&gt; in question
2. remove the attribute &quot;target&quot; from the &lt;a&gt;
3. copy the href destination in a variable (myUrl)
4. modify the href-&gt;javascript:window.open(myUrl,&#039;myWindow&#039;)
5. click on &lt;a&gt;
6. select window &#039;myWindow&#039;

&lt;code&gt;
getEval &#124; this.page().findElement(&#039;link=click here&#039;).removeAttribute(&#039;target&#039;)&#124;&#124;
storeEval &#124; this.page().findElement(&#039;link=click here&#039;).href &#124; myUrl
getEval &#124; this.page().findElement(&#039;link=click here&#039;).href=&quot;javascript:window.open(&#039;${myUrl}&#039;,&#039;myWindow&#039;)&quot; &#124;&#124;
click &#124; link=click here &#124;&#124;
pause &#124; 1000 &#124;&#124;
selectWindow &#124; name=myWindow &#124;&#124;&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Here are the steps I took for Selenium IDE:</p>
<p>1. find the &lt;a&gt; in question<br />
2. remove the attribute &#8220;target&#8221; from the &lt;a&gt;<br />
3. copy the href destination in a variable (myUrl)<br />
4. modify the href-&gt;javascript:window.open(myUrl,&#8217;myWindow&#8217;)<br />
5. click on &lt;a&gt;<br />
6. select window &#8216;myWindow&#8217;</p>
<p><code><br />
getEval | this.page().findElement('link=click here').removeAttribute('target')||<br />
storeEval | this.page().findElement('link=click here').href | myUrl<br />
getEval | this.page().findElement('link=click here').href="javascript:window.open('${myUrl}','myWindow')" ||<br />
click | link=click here ||<br />
pause | 1000 ||<br />
selectWindow | name=myWindow ||</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TAB</title>
		<link>http://testautomationblog.com/2009/10/08/selecting-unnamed-pop-up-windows-in-selenium/comment-page-1/#comment-2902</link>
		<dc:creator>TAB</dc:creator>
		<pubDate>Thu, 05 Nov 2009 19:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://testautomationblog.com/?p=133#comment-2902</guid>
		<description>I don&#039;t understand completely what kind of pop-ups you have in mind, but if those are not browser windows you are likely to have problems. Selenium should be able to handle alert windows like &quot;Do you want to delete the record? [Yes] [No]&quot; or &quot;Enter a valid date [OK]&quot; by intercepting them, so that they do not pop-up when you run your script. Unfortunately this does not always work in my experience. I do not know of any straightforward solution for the case when you actually see such pop-ups while executing the test.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t understand completely what kind of pop-ups you have in mind, but if those are not browser windows you are likely to have problems. Selenium should be able to handle alert windows like &#8220;Do you want to delete the record? [Yes] [No]&#8221; or &#8220;Enter a valid date [OK]&#8221; by intercepting them, so that they do not pop-up when you run your script. Unfortunately this does not always work in my experience. I do not know of any straightforward solution for the case when you actually see such pop-ups while executing the test.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samerj</title>
		<link>http://testautomationblog.com/2009/10/08/selecting-unnamed-pop-up-windows-in-selenium/comment-page-1/#comment-2900</link>
		<dc:creator>Samerj</dc:creator>
		<pubDate>Wed, 04 Nov 2009 15:00:10 +0000</pubDate>
		<guid isPermaLink="false">http://testautomationblog.com/?p=133#comment-2900</guid>
		<description>Hello 

How we cna handle unnamed application based pop-ups (not windows pop-ups) which doesn&#039;t open as new browser windows. I mean for that user don&#039;t have to click on any link. It&#039;s like performing any action in application - so it gives popup according it&#039;s functionality.</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>How we cna handle unnamed application based pop-ups (not windows pop-ups) which doesn&#8217;t open as new browser windows. I mean for that user don&#8217;t have to click on any link. It&#8217;s like performing any action in application &#8211; so it gives popup according it&#8217;s functionality.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
