<?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>Altentee » Performance &#38; Test Automation Experts &#187; .getSelectedItems</title>
	<atom:link href="http://altentee.com/blogs/tag/getselecteditems/feed/" rel="self" type="application/rss+xml" />
	<link>http://altentee.com</link>
	<description>Performance and Test Automation Experts</description>
	<lastBuildDate>Fri, 04 Nov 2011 03:17:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Q. How do I find the selected element in a combo box?</title>
		<link>http://altentee.com/blogs/2008/q-how-do-i-find-the-selected-element-in-a-combo-box/</link>
		<comments>http://altentee.com/blogs/2008/q-how-do-i-find-the-selected-element-in-a-combo-box/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 16:08:22 +0000</pubDate>
		<dc:creator>Tim Koopmans</dc:creator>
				<category><![CDATA[Altentee]]></category>
		<category><![CDATA[.getSelectedItems]]></category>

		<guid isPermaLink="false">http://justaddwatir.com/watir/?p=16</guid>
		<description><![CDATA[A. Use the select_list comand in conjunction with the getSelectedItems command Example html: &#60;select name=&#34;watirCombo&#34;&#62; &#60;option value=&#34;0&#34; selected&#62;(please select:)&#60;/option&#62; &#60;option value=&#34;1&#34;&#62;Option 1&#60;/option&#62; &#60;option value=&#34;2&#34;&#62;Option 2&#60;/option&#62; &#60;option value=&#34;3&#34;&#62;Option 3&#60;/option&#62; &#60;option value=&#34;other&#34;&#62;Other&#60;/option&#62; &#60;/select&#62; Example watir: @b.goto&#40;'http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0021.html'&#41; combo_items = @b.select_list&#40;:name, &#34;watirCombo&#34;&#41;.getSelectedItems puts combo_items]]></description>
			<content:encoded><![CDATA[<p><strong>A. Use the select_list comand in conjunction with the getSelectedItems command </strong><br />
<a href="http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0021.html">Example html</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;watirCombo&quot;</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span> selected&gt;</span>(please select:)<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1&quot;</span>&gt;</span>Option 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2&quot;</span>&gt;</span>Option 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3&quot;</span>&gt;</span>Option 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;other&quot;</span>&gt;</span>Other<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">select</span>&gt;</span></pre></div></div>

<p>Example watir:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"> <span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">goto</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">'http://justaddwatir.com/watir/test_html/tc_0001_0100/test_0021.html'</span><span style="color:#006600; font-weight:bold;">&#41;</span>
 combo_items = <span style="color:#0066ff; font-weight:bold;">@b</span>.<span style="color:#9900CC;">select_list</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:name</span>, <span style="color:#996600;">&quot;watirCombo&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">getSelectedItems</span>
 <span style="color:#CC0066; font-weight:bold;">puts</span> combo_items</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://altentee.com/blogs/2008/q-how-do-i-find-the-selected-element-in-a-combo-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

