title: Assert Failing. Cannot Determine Why?
body: <p>I have the following code.</p>
  
  <pre><code>String rowNum = Integer.toString(rand.nextInt(max - min + 1) + min);
  WebElement randomRow = driver.findElement(By.xpath("/html/body/div/div/div/div/form/div/div[2]/div/div[2]/div/div/div/div/div/div/div/table/tbody/tr["+rowNum+"]/td/div/input")); 
  Assert.assertEquals(randomRow.getAttribute("checked").equals("checked"), "checked", "YES is not selected");
  </code></pre>
  
  <p>Basically randomRow is a random row from a table and I am checking the first column which has a radio button in it. The radio button should have the attribute of checked= "checked".</p>
  
  <p>When the test hits the assert it is failing with the following: </p>
  
  <pre><code>YES is not selected expected [checked[ but found ]false]
  </code></pre>
  
  <p>Any thoughts on why this assertion is failing?</p>