<?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: Selenium Tips: CSS Selectors in Selenium Demystified</title>
	<atom:link href="http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/feed/" rel="self" type="application/rss+xml" />
	<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/</link>
	<description></description>
	<lastBuildDate>Sat, 19 May 2012 03:57:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: likeapple</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25684</link>
		<dc:creator>likeapple</dc:creator>
		<pubDate>Wed, 04 Apr 2012 10:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25684</guid>
		<description>Sorry because it has been error when I post html code:
My structure html is:
1.  
2.  
3.	&lt;a href=&quot;/fiadmintool/&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;
4.	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
5. 	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
6	
7.	
8.	&lt;a href=&quot;/fiadmintool/roles/&quot; rel=&quot;nofollow&quot;&gt;Roles&lt;/a&gt;
9.	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
10.	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
11.	
12	&lt;a href=&quot;/fiadmintool/group_accounts/&quot; rel=&quot;nofollow&quot;&gt;Group Accounts&lt;/a&gt;
13.	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
14.	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
15.	</description>
		<content:encoded><![CDATA[<p>Sorry because it has been error when I post html code:<br />
My structure html is:<br />
1.<br />
2.<br />
3.	<a href="/fiadmintool/" rel="nofollow">Home</a><br />
4.	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
5. 	<!--[if lt IE 8]&gt;</a>&lt;![endif]&#8211;><br />
6<br />
7.<br />
8.	<a href="/fiadmintool/roles/" rel="nofollow">Roles</a><br />
9.	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
10.	<!--[if lt IE 8]&gt;</a>&lt;![endif]&#8211;><br />
11.<br />
12	<a href="/fiadmintool/group_accounts/" rel="nofollow">Group Accounts</a><br />
13.	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
14.	<!--[if lt IE 8]&gt;</a>&lt;![endif]&#8211;><br />
15.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: likeapple</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25683</link>
		<dc:creator>likeapple</dc:creator>
		<pubDate>Wed, 04 Apr 2012 10:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25683</guid>
		<description>My structure html is:


	&lt;a href=&quot;/fiadmintool/&quot; rel=&quot;nofollow&quot;&gt;Home&lt;/a&gt;
	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
	
	
	&lt;a href=&quot;/fiadmintool/roles/&quot; rel=&quot;nofollow&quot;&gt;Roles&lt;/a&gt;
	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
	
	&lt;a href=&quot;/fiadmintool/group_accounts/&quot; rel=&quot;nofollow&quot;&gt;Group Accounts&lt;/a&gt;
	&lt;!--[if lt IE 8]&gt;&lt;![endif]--&gt;
	&lt;!--[if lt IE 8]&gt;&lt;/a&gt;&lt;![endif]--&gt;
	
	
	&lt;a href=&quot;/fiadmintool/search_user_accounts/&quot; rel=&quot;nofollow&quot;&gt;User Accounts&lt;/a&gt;
I want to click into Group Account, How do I write by selenium?

I wrote that:
WebElement element = driver.findElement(By.cssSelector(&quot;css=ul#navigation li:nth-of-type(4)a span&quot;));
But it doen&#039;t work? 
Please help me. Thank in advance
But</description>
		<content:encoded><![CDATA[<p>My structure html is:</p>
<p>	<a href="/fiadmintool/" rel="nofollow">Home</a><br />
	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
	&lt;!&#8211;[if lt IE 8]&gt;&lt;![endif]&#8211;&gt;</p>
<p>	<a href="/fiadmintool/roles/" rel="nofollow">Roles</a><br />
	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
	&lt;!&#8211;[if lt IE 8]&gt;&lt;![endif]&#8211;&gt;</p>
<p>	<a href="/fiadmintool/group_accounts/" rel="nofollow">Group Accounts</a><br />
	<!--[if lt IE 8]&gt;&lt;![endif]--><br />
	&lt;!&#8211;[if lt IE 8]&gt;&lt;![endif]&#8211;&gt;</p>
<p>	<a href="/fiadmintool/search_user_accounts/" rel="nofollow">User Accounts</a><br />
I want to click into Group Account, How do I write by selenium?</p>
<p>I wrote that:<br />
WebElement element = driver.findElement(By.cssSelector(&#8220;css=ul#navigation li:nth-of-type(4)a span&#8221;));<br />
But it doen&#8217;t work?<br />
Please help me. Thank in advance<br />
But</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastien</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25522</link>
		<dc:creator>Sebastien</dc:creator>
		<pubDate>Mon, 13 Feb 2012 15:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25522</guid>
		<description>Thanks for the FirePath tip David. That works great!</description>
		<content:encoded><![CDATA[<p>Thanks for the FirePath tip David. That works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25516</link>
		<dc:creator>David</dc:creator>
		<pubDate>Sat, 11 Feb 2012 00:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25516</guid>
		<description>FYI:

This article is great, but needs to point out that not all the CSS selectors like &quot;tag:contains(&#039;text&#039;)&quot; will work under Selenium 2 / WebDriver. That is because :contains is one of the pseudo-classes that isn&#039;t part of standard CSS but usable with CSS libraries like Sizzle. Selenium 1/RC used Sizzle for CSS across all browsers. In Selenium 2, it is only used where necessary like IE and other browsers use the native standard CSS (w/o the extra features).

So if you still want :contains going in Selenium 2, you&#039;ll need to inject Sizzle library into the web page and do lookup with that.

And for testing CSS locators prior to putting in Selenium, I use Firebug addon called FirePath. It lets you test XPath, standard CSS, and Sizzle-based CSS.</description>
		<content:encoded><![CDATA[<p>FYI:</p>
<p>This article is great, but needs to point out that not all the CSS selectors like &#8220;tag:contains(&#8216;text&#8217;)&#8221; will work under Selenium 2 / WebDriver. That is because :contains is one of the pseudo-classes that isn&#8217;t part of standard CSS but usable with CSS libraries like Sizzle. Selenium 1/RC used Sizzle for CSS across all browsers. In Selenium 2, it is only used where necessary like IE and other browsers use the native standard CSS (w/o the extra features).</p>
<p>So if you still want :contains going in Selenium 2, you&#8217;ll need to inject Sizzle library into the web page and do lookup with that.</p>
<p>And for testing CSS locators prior to putting in Selenium, I use Firebug addon called FirePath. It lets you test XPath, standard CSS, and Sizzle-based CSS.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastien</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25488</link>
		<dc:creator>Sebastien</dc:creator>
		<pubDate>Wed, 25 Jan 2012 01:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25488</guid>
		<description>Hello

Anyone know of a Firefox pluggin I could use to test CSS selectors before I put them in my code?

For xpath, I use xpather which allows me to type all my fancy xpaths and shows me the matches, or right click anywhere on the page to get the xpath of the element.
That helps me cut on development time which, at least in my manager&#039;s opinion, is even more important than cutting a few seconds of execution time. But of course, if I can get the best of both worlds, I would be more than happy...

Also, are css locators prone to cross-browser issues? One thing I like about xpaths is that they are pretty consistent across browsers expect for some features like selecting by index.</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Anyone know of a Firefox pluggin I could use to test CSS selectors before I put them in my code?</p>
<p>For xpath, I use xpather which allows me to type all my fancy xpaths and shows me the matches, or right click anywhere on the page to get the xpath of the element.<br />
That helps me cut on development time which, at least in my manager&#8217;s opinion, is even more important than cutting a few seconds of execution time. But of course, if I can get the best of both worlds, I would be more than happy&#8230;</p>
<p>Also, are css locators prone to cross-browser issues? One thing I like about xpaths is that they are pretty consistent across browsers expect for some features like selecting by index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tina</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25418</link>
		<dc:creator>Tina</dc:creator>
		<pubDate>Thu, 05 Jan 2012 09:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25418</guid>
		<description>I am new to use selenium.
It&#039;s very helpful to me.

Thanks,
Tina</description>
		<content:encoded><![CDATA[<p>I am new to use selenium.<br />
It&#8217;s very helpful to me.</p>
<p>Thanks,<br />
Tina</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ny</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25402</link>
		<dc:creator>Ny</dc:creator>
		<pubDate>Tue, 03 Jan 2012 08:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25402</guid>
		<description>Hello,
I am so new to Selenium.
I think i will focus on css locator but I find on selenium document, it is not too much. When i read CSS topic on w3s, it is not the same to selenium...Im so confused. I dont know where to start...
Can any one help to show me the way?

Thanks to much
Ny</description>
		<content:encoded><![CDATA[<p>Hello,<br />
I am so new to Selenium.<br />
I think i will focus on css locator but I find on selenium document, it is not too much. When i read CSS topic on w3s, it is not the same to selenium&#8230;Im so confused. I dont know where to start&#8230;<br />
Can any one help to show me the way?</p>
<p>Thanks to much<br />
Ny</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enhanceqa</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25298</link>
		<dc:creator>enhanceqa</dc:creator>
		<pubDate>Thu, 24 Nov 2011 12:50:05 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25298</guid>
		<description>how to identify span with text “OK” which is enclosed between span tag with css
&quot;Ok&quot;</description>
		<content:encoded><![CDATA[<p>how to identify span with text “OK” which is enclosed between span tag with css<br />
&#8220;Ok&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-25296</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Thu, 24 Nov 2011 12:47:06 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-25296</guid>
		<description>Ok

how to identify span with text &quot;OK&quot;</description>
		<content:encoded><![CDATA[<p>Ok</p>
<p>how to identify span with text &#8220;OK&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skundam</title>
		<link>http://saucelabs.com/blog/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/comment-page-1/#comment-22879</link>
		<dc:creator>skundam</dc:creator>
		<pubDate>Tue, 12 Jul 2011 05:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://saucelabs.com/blog/?p=503#comment-22879</guid>
		<description>How to click a button if the css is &quot;css=a.rtsLink.rtsClicked &gt; span.rtsOut &gt; span.rtsIn &gt; span.rtsTxt&quot;?.</description>
		<content:encoded><![CDATA[<p>How to click a button if the css is &#8220;css=a.rtsLink.rtsClicked &gt; span.rtsOut &gt; span.rtsIn &gt; span.rtsTxt&#8221;?.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

