0
我想從一個元素中獲取text
值,我嘗試了很多變化。毫無效果..這是我最新的嘗試:PHPUnit Selenium2沒有返回文本
$totalFlightPrice = $row->elements($row->using('css selector')->value('span[class="totalPriceToBook"]'));
echo 'counted: '.count($totalFlightPrice)."\n";
foreach ($totalFlightPrice as $tp) {
echo 'text: '.$tp->text()."\n";
}
當我使用的var_dump上totalFlightPrice我receving的對象,這意味着它能夠找到股利。 但即時通訊使用文本功能沒有返回。
這是我的跨度元件:
<span class="totalPriceToBook">382€</span>