title: Check if Tab on Web Page is selected using Selenium
body: <p>I wanted to do one very simple thing. Does anyone know how can I know if a Tab is selected on web page using selenium RC Python Client?</p>
  
  <p>By tab, I mean the following examples from the following links:<br>
  <a href="http://clagnut.com/sandbox/csstabs/?writingtext=csstabs#" rel="nofollow">http://clagnut.com/sandbox/csstabs/?writingtext=csstabs#</a><br>
  <a href="http://esdi.excelsystems.com/wsexmp/DIVTAB.pgm?wsnum=00096" rel="nofollow">http://esdi.excelsystems.com/wsexmp/DIVTAB.pgm?wsnum=00096</a><br>
  <a href="http://www.hongkiat.com/blog/drop-down-menu-30-free-scripts-to-enhance-header-navigation/" rel="nofollow">http://www.hongkiat.com/blog/drop-down-menu-30-free-scripts-to-enhance-header-navigation/</a>  </p>
  
  <p>I know that I can run <code>get_eval(js)</code> with a javascript, where in the javascript might be looking for some change? But I want to know a generic javascript that can tell me if a tab is selected or not? OR is there any Selenium methods that I could just (like <code>focus()</code>, etc...)</p>
  
  <p>The reason is because, I can easily click on the tab by calling <code>click(tab_locator)</code>. But I want to be sure if I have selected the tab. Isn't there a method like <code>is_tab_selected(tab_locator)</code>?</p>