when(we.findElement(By.xpath(".//span[@foo = 'bar']"))).thenReturn(we2);
when(we2.getTagName()).thenReturn("span");
FluentWebElement fwe = fwd.div().span(By.xpath("@foo = 'bar'"))
.sendKeys("apple").clearField().submit();
doReturn(true).when(we2).isSelected();
<BUG>boolean isSelected = fwe.isSelected();
</BUG>
assertThat(isSelected, equalTo(true));
doReturn(true).when(we2).isEnabled();
<BUG>boolean isEnabled = fwe.isEnabled();
</BUG>
assertThat(isEnabled, equalTo(true));

when(we.findElement(By.xpath(".//span[@foo = 'bar']"))).thenReturn(we2);
when(we2.getTagName()).thenReturn("span");
FluentWebElement fwe = fwd.div().span(By.xpath("@foo = 'bar'"))
.sendKeys("apple").clearField().submit();
doReturn(true).when(we2).isSelected();
boolean isSelected = fwe.isSelected().getValue();
assertThat(isSelected, equalTo(true));
doReturn(true).when(we2).isEnabled();
boolean isEnabled = fwe.isEnabled().getValue();
assertThat(isEnabled, equalTo(true));
