php - Codeception - How to address a field with non-unique name -


i want test list of records codeception. have form , have unique rows this

<tr id="row1">   <td class="description">     <input name="description" type="text" value="some text">   </td> </tr> <tr id="row2">   <td class="description">     <input name="description" type="text" value="some more text">   </td> </tr> 

so name of field same while id of row not. when try

$i->fillfield("#row1 input[name='description']", "some other text"); 

it fails with

field name, label, css or xpath '#row1 input[name="description"]' not found on page. 

i believe answer around corner struggling find it. hints or ideas?

thanx,

m!

you use css selectors td:nth-child(1) or td:nth-of-child(1).

also beware (irc) phpbrowser can use fillfield on fields contained inside form.


Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -