Find value inside html table with Codeception

  acceptance-testing, codeception, php, symfony, testing

Hello !

I’m writting some acceptance tests on a PHP application with Codeception and something block me.
I need to find the value of a specific col inside an HTML table.
The only information I have is the value of another col of the row.

There is the HTML structure :

<table>
    <tr>
        <td>Here is the value I need to grab</td>
        <td>Here is the value I have</td>
    </tr>
</table>

Does anyone know how to do this?

Thank you in advance !

Source: Symfony Questions

LEAVE A COMMENT