xpath を使用して要素の配列を取得し、結果を配列にロードしてから実行しようとしていますassertCount()
。これが私が持っているコードです。私はこれが初めてで、なぜ elementList が空なのかわかりませんか?
<?php
require_once('Base.php');
class FollowupTest extends Test_Base {
protected $session = null;
/**
* Asserts that the count of list elements on the page is equal
* to three utilizing an xpath expression.
*/
public function testCountListElements() {
$elementsList = $this->session->elements('xpath', '//li');
$this->assertCount(3, sizeof($elementList));
}
}