Mink/Goutte How to check checkbox without attribute in Goutte?

前端 未结 2 564
别那么骄傲
别那么骄傲 2020-12-22 06:16

I apologize in advance but I am very beginner. I try to check checkbox without id or name.

2条回答
  •  -上瘾入骨i
    2020-12-22 06:43

    You have to use the method checkOption($option) of MinkContext (in Behat/MinkExtension that you must install via Composer).

    MinkContext is installed by default in Behat environment.

    MinkContext.php

    Hope it works.

提交回复
热议问题