Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为 Selenium RC 使用 PHPUnit Selenium Extension。
我能够断言该字段存在:
$this->assertElementPresent('Date');
但是我如何断言该字段被禁用(或不可编辑)?
isEditable()将返回真/假
isEditable()
$this->assertEquals(false, $this->isEditable('Date'));
...或者更好:
$this->assertNotEditable('Date');