Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot select option with PhpBrowser #5547
What are you trying to achieve?
I'd like to select an option of the following html code
What do you get instead?
[InvalidArgumentException] Input "payment_type" cannot take "" as a value (possible values: За показы, За размещение, qwerty).
actor: AcceptanceTester modules: enabled: - PhpBrowser: url: http://maza.biz/insta - \Helper\Acceptance - Db: dsn: 'mysql:host=localhost;dbname=insta_test' user: 'baza' password: '9x' dump: 'tests/_data/database.sql' populate: false # run populator before all tests cleanup: false # run populator before each test reconnect: true waitlock: 10 step_decorators: - \Codeception\Step\ConditionalAssertion
Exception is thrown by https://github.com/symfony/dom-crawler/blob/v4.3.1/Field/ChoiceFormField.php#L140
Probably because matchOption returns false or empty string?
Could you do some debugging and check value of
I use Codeception with phar and it prevents changes
Ok, I figured out that if I convert this select to key-value one:
the method selectOption works fine. But, considering that plain version is a correct HTML mark-up, I guess it should be supported too.