Selenium: How to assert that a textbox is disabled?

I am using PHPUnit Selenium extension for Selenium RC.

I can argue that the field is present:

$this->assertElementPresent('Date');

      

But how can I assert that the field is disabled (or not editable)?

+2


a source to share


1 answer


isEditable()

will return true / false

$this->assertEquals(false, $this->isEditable('Date'));

      



... or better yet:

$this->assertNotEditable('Date');

      

+1


a source







All Articles