Mink icon indicating copy to clipboard operation
Mink copied to clipboard

Provide partial named selector that selects also the hidden fields

Open claudiu-cristea opened this issue 8 years ago • 3 comments

Sometime we have to search for hidden fields (<input type="hidden" .../>). Add this selector to be used for such cases.

claudiu-cristea avatar Jul 17 '16 18:07 claudiu-cristea

@stof , what do you think about this PR? Searching for hidden fields doesn't look like something, that will fit into Mink purpose.

aik099 avatar Jul 18 '16 09:07 aik099

I think we should even consider this as the default behaviour for "named_partial". I can provide a PR if you agree.

claudiu-cristea avatar Jul 18 '16 10:07 claudiu-cristea

A hidden field makes sense when you use a JS based driver, for example with https://github.com/jcalderonzumba/MinkPhantomJSDriver but I agree, per default, a browser user doesn't have the capability directly to do that.

On the other hand, making it possible to test security related stuff, by also changing the hidden fields, could be made as a point.

dawehner avatar Jul 18 '16 10:07 dawehner