tags:

views:

38

answers:

1

For example:

How can I assert this input?

$this->assertQuery( "input[name="user_name][type='hidden']") can not find any content.

Of couse $this->assertQuery( "input[name='user_name']) will work well, but I need to use type and name attributes together.

Thanks a lot.

A: 

I don't think assertQuery can, use assertXPath:

$this->assertXPath("//input[@name='user_name'][@type='hidden']);

Strick