<?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: Select an option from an ExtJS ComboBox</title>
	<atom:link href="http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/feed/" rel="self" type="application/rss+xml" />
	<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/</link>
	<description>Examples and tips for Selenium</description>
	<lastBuildDate>Thu, 22 Mar 2012 10:31:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Krishnam Raju</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-613</link>
		<dc:creator>Krishnam Raju</dc:creator>
		<pubDate>Tue, 09 Aug 2011 06:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-613</guid>
		<description>Well, I am finding it difficult, rather, impossible to click TreeGrid elements with this appraoch. 

Dave, could you please help me. Thanks in advance for your time.</description>
		<content:encoded><![CDATA[<p>Well, I am finding it difficult, rather, impossible to click TreeGrid elements with this appraoch. </p>
<p>Dave, could you please help me. Thanks in advance for your time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eran Golan</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-611</link>
		<dc:creator>Eran Golan</dc:creator>
		<pubDate>Thu, 04 Aug 2011 12:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-611</guid>
		<description>Hi,

Just wanted to say THANKS.

I&#039;m in a point right now that I realize how important it is to share our knowledge with rest of the developers out there..

cheers.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just wanted to say THANKS.</p>
<p>I&#8217;m in a point right now that I realize how important it is to share our knowledge with rest of the developers out there..</p>
<p>cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kanaka Kuchibhotla</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-577</link>
		<dc:creator>Kanaka Kuchibhotla</dc:creator>
		<pubDate>Wed, 23 Mar 2011 23:05:36 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-577</guid>
		<description>I have the generated source code as:
&lt;b&gt;Organization:&lt;/b&gt;
              
              
				
					
				
				
				

					
					
				

how should I make selenium select the value that I want when jquery populates the list?
I used this but it does not work:
selenium.click(&quot;//a[@id=&#039;ui-active-menuitem&#039;]&quot;);

Can you please suggest something?</description>
		<content:encoded><![CDATA[<p>I have the generated source code as:<br />
<b>Organization:</b></p>
<p>how should I make selenium select the value that I want when jquery populates the list?<br />
I used this but it does not work:<br />
selenium.click(&#8220;//a[@id='ui-active-menuitem']&#8220;);</p>
<p>Can you please suggest something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-508</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 18 Nov 2010 13:48:44 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-508</guid>
		<description>Hi Rohit,

Glad this helped you. To differentiate between the two labels in the locator you could use something like:

Tray 1:
//div[contains(@class, &#039;x-combo-list&#039;)]/descendant::div[contains(@class, &#039;x-combo-list-item&#039;)][text()=&#039;Paper Type&#039;][1]

Tray 2:
//div[contains(@class, &#039;x-combo-list&#039;)]/descendant::div[contains(@class, &#039;x-combo-list-item&#039;)][text()=&#039;Paper Type&#039;][2]

The [1] and [2] determine which element to return when multiple are found. Please note that I&#039;ve not tested the above, so it might need some tweaking to get it to work. I recommend the XPath Checker addon for Firefox (https://addons.mozilla.org/en-US/firefox/addon/1095/) to help you find the most suitable XPaths.</description>
		<content:encoded><![CDATA[<p>Hi Rohit,</p>
<p>Glad this helped you. To differentiate between the two labels in the locator you could use something like:</p>
<p>Tray 1:<br />
//div[contains(@class, 'x-combo-list')]/descendant::div[contains(@class, 'x-combo-list-item')][text()='Paper Type'][1]</p>
<p>Tray 2:<br />
//div[contains(@class, 'x-combo-list')]/descendant::div[contains(@class, 'x-combo-list-item')][text()='Paper Type'][2]</p>
<p>The [1] and [2] determine which element to return when multiple are found. Please note that I&#8217;ve not tested the above, so it might need some tweaking to get it to work. I recommend the XPath Checker addon for Firefox (<a href="https://addons.mozilla.org/en-US/firefox/addon/1095/" rel="nofollow">https://addons.mozilla.org/en-US/firefox/addon/1095/</a>) to help you find the most suitable XPaths.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit A</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-507</link>
		<dc:creator>Rohit A</dc:creator>
		<pubDate>Wed, 17 Nov 2010 09:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-507</guid>
		<description>Dave, 

You are super...
This piece of code is flawless... Works on any extjs webpage.

Thanks again.

Also what could be done if there are 2 labels which are similar in name.

For Eg in a Printer:
Tray 1:
[Label] Paper Type

Tray 2:
[Label] Paper Type</description>
		<content:encoded><![CDATA[<p>Dave, </p>
<p>You are super&#8230;<br />
This piece of code is flawless&#8230; Works on any extjs webpage.</p>
<p>Thanks again.</p>
<p>Also what could be done if there are 2 labels which are similar in name.</p>
<p>For Eg in a Printer:<br />
Tray 1:<br />
[Label] Paper Type</p>
<p>Tray 2:<br />
[Label] Paper Type</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evgeny</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-492</link>
		<dc:creator>Evgeny</dc:creator>
		<pubDate>Tue, 09 Nov 2010 16:24:09 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-492</guid>
		<description>Hi.
The second click() operation does not work for me without any warning/error. The second waitForCondition() ends with timeout...
What can be reason that combo item is not selected from dropped down list?

Thank you</description>
		<content:encoded><![CDATA[<p>Hi.<br />
The second click() operation does not work for me without any warning/error. The second waitForCondition() ends with timeout&#8230;<br />
What can be reason that combo item is not selected from dropped down list?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Irina</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-92</link>
		<dc:creator>Irina</dc:creator>
		<pubDate>Thu, 27 May 2010 19:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-92</guid>
		<description>Thank you  very  much  for this  example! Works  just fine for  me :)</description>
		<content:encoded><![CDATA[<p>Thank you  very  much  for this  example! Works  just fine for  me <img src='http://seleniumexamples.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssr</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-71</link>
		<dc:creator>ssr</dc:creator>
		<pubDate>Mon, 10 May 2010 13:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-71</guid>
		<description>is anyone tried export test case to JUNIT and executed? actually i am trying it with junit, the select is not happening. Any suggestions?</description>
		<content:encoded><![CDATA[<p>is anyone tried export test case to JUNIT and executed? actually i am trying it with junit, the select is not happening. Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-64</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 03 May 2010 19:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-64</guid>
		<description>Cool. Glad I could help! :)</description>
		<content:encoded><![CDATA[<p>Cool. Glad I could help! <img src='http://seleniumexamples.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lubomir Zrnecko</title>
		<link>http://seleniumexamples.com/blog/examples/select-an-option-from-an-extjs-combobox/comment-page-1/#comment-61</link>
		<dc:creator>Lubomir Zrnecko</dc:creator>
		<pubDate>Sun, 02 May 2010 13:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://seleniumexamples.com/blog/?p=3#comment-61</guid>
		<description>Hi, just want to thank you for this howto. I struggled with combobox for a while and even tried to leverage Ext API to test it but your solution is the right one. I just had to replace outer apostrophes in waitForCondition expression with escaped quote marks, without this change I got JS syntax error.</description>
		<content:encoded><![CDATA[<p>Hi, just want to thank you for this howto. I struggled with combobox for a while and even tried to leverage Ext API to test it but your solution is the right one. I just had to replace outer apostrophes in waitForCondition expression with escaped quote marks, without this change I got JS syntax error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

