내가 기본 phpunit을 셀레늄 주장 하나, 검사 오류 출력 및 메시지를 표시합니다 사용하려고 할 때마다 함께 명령을 호출 할 수 없습니다 : http://phpunit.de/manual/3.7/en/selenium.html에여러 메소드 인수
Exception: You cannot call a command with multiple method arguments.
를, 그것은으로 사용을 보여줍니다 :
void assertElementValueEquals(string $locator, string $text)
내가
$this->assertElementValueEquals('id=date_1_formatted', '2013-01-01');
t로를 호출 할 때 수 동부 표준시는 Using PHPUnit with Selenium, how can I test that an element contains exactly something?
" '# date_1_formatted'' 또는''[id ='date_1_formatted ']"' – Richard
제안 해 주셔서 감사하지만 그 각각은 여전히 같은 오류가 발생합니다. –
'$ locator'가 무엇인지 명시 적으로 명시하는 특정 문서를 찾을 수 없지만 xpath만을 허용 할 수 있습니다. 어떤 경우에는''// [@ id = 'date_1_formatted'] "' – Richard