title: Finding CSS Selector for selenium test
body: <p>Could anyone tell me how to correctly find the css selector for the following code. I need to know the css selector and not the xpath as web elements cannot use xpath.  </p>
  
  <pre><code>&lt;div id="drag" class="dojoDndSource dojoDndTarget dojoDndContainer" style="height:300px;width:250px;font-size:1.2em;border:2px solid #ccc; padding:1em;overflow:auto; " data-dojo-type="dojo.dnd.Source"&gt;
  &lt;div id="1" class="dojoDndItem" style="padding:.5em;"&gt;1&lt;/div&gt;
  &lt;div id="2" class="dojoDndItem" style="padding:.5em;"&gt;2&lt;/div&gt;
  &lt;div id="3" class="dojoDndItem dojoDndItemAnchor" style="padding:.5em;"&gt;3&lt;/div&gt;
  &lt;div id="99" class="dojoDndItem" style="padding:.5em;"&gt;T4&lt;/div&gt;
  &lt;div id="100" class="dojoDndItem" style="padding:.5em;"&gt;T5&lt;/div&gt;  
  </code></pre>
  
  <p>I wish to select the div with <code>id="99"</code>. I've tried using the following:</p>
  
  <pre><code>driver.findElement(By.cssSelector(".T4"));
  driver.findElement(By.cssSelector("//input[@id='gbqfq']")); 
  </code></pre>