V
V
Vasily Petrov2016-10-26 11:45:14
PHP
Vasily Petrov, 2016-10-26 11:45:14

How to refer to a specific link in the first block on the page (functional tests)?

For example, there is a structure like this

<ul class="list">
        <li><a href="#one"></a></li>
        <li><a href="#two"></a></li>
        <li><a href="#three"></a></li>
</ul>

How to get the href of the link in the first block? Thank you.
in the dock I found only a way through id (this does not work)
$I->click('#form input[type=submit]');

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nurlan, 2016-10-26
@token_bus

Maybe so?
$I->click('#form a[href=#one]');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question