Development

#6691 (sfTesterResponse::checkElement() CSS selector error in functional tests)

You must first sign up to be able to contribute.

Ticket #6691 (new defect)

Opened 1 year ago

sfTesterResponse::checkElement() CSS selector error in functional tests

Reported by: klemens_u Assigned to: fabien
Priority: minor Milestone:
Component: lime Version: 1.2.7
Keywords: Cc:
Qualification: Unreviewed

Description

HTML example:

<input id="my_field" type="hidden" value="foobar" />

Doesn't work:

$t->with('response')->checkElement('#my_field[type="hidden"][value="foobar"]');

Does work:

$t->with('response')->checkElement('input[id="my_field"][type="hidden"][value="foobar"]');

It seems that it isn't possible to use an id selector ("#my_field") together with attribute selectors ("[value="foobar"]").

If it can't be easily fixed a remark in the documentation would be helpful.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.