Selenium css selector for button text
<p>HTML looks like below :    </p>

<pre><code>&lt;button class="btn btn-primary pull-right" type="submit"&gt;Sign in&lt;/button&gt;
</code></pre>

<p>There are multiple buttons with same class and type value. However I need to click only Sign in button using CSS selector. I tried the following but none of them is working</p>

<pre><code>@FindBy(how=How.CSS, using="button:contains('Sign in')") WebElement signInButton;

@FindBy(how=How.CSS, using=".btn btn-primary pull-right[text='Sign in']") WebElement signInButton;
</code></pre>

<p>Also point me to some complex CSS selector examples site.</p>