I apologize in advance but I am very beginner. I try to check checkbox without id or name.
<span class="ps-align-left">
<input type="checkbox" value="43899" style="background-color: rgb(252, 252, 252);"/>
43899
</span>
I figure out how to do it with selenium2driver. So I use function "find" like this:
public function checkOption()
{
$this->getSession()->getPage()->find('css', '.ps-align-left>input')->check();
}
And it works fine but when I try to run test with headless browser Goutte I get error:
/usr/bin/php5.6 /tmp/ide-behat.php --format PhpStormBehatFormatter /home/grzegorz/PhpstormProjects/Test/features/scenariusze.feature
Testing started at 14:48 ...
Malformed field path ""
Can anyone knows the reason? Should I use a different function?