0

我将 .blade.php 用于视图,我的无线电代码如下所示:

<label for="passenger-count-option-2" class="passenger_option hover:bg-blue-600 box-border rounded text-center border w-full pt-5 m-2">
     <input wire:model.defer="state.passenger_count" class="hidden" type="radio" value="6-25" name="passenger-count" id="passenger-count-option-2">
     <img for="passenger-count-option-2" src="{{ URL::asset('/images/icon-2.png')}}" alt="profile Pic" class="m-auto" height="170" width="170">
     <label for="passenger-count-option-2" class="block text-center py-4">6-25</label>
</label>

我的黄昏代码是这样的:

->radio('passenger-count', '6-25')
                

它给了我错误:

Facebook\WebDriver\Exception\NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"body trip_more_stops"}

(会话信息:无头 chrome=94.0.4606.81)

当我删除 class="hidden" 它工作得很好,但我想保持该字段隐藏。

我正在使用黄昏 v19 和 chrome v94

4

0 回答 0