Greetings from Africa!
I'm running functional tests in Yii2. I have my HTML source as follows:
<form>
<select id="user-role" class="form-control" name="User[role]">
<option value="">Select Role</option>
<option value="mentor">Mentor</option>
<option value="exec">Exec</option>
<option value="admin">Admin</option>
</select>
</form>
When my tests reach this line:
$I->selectOption('form select[name=User[role]]', 'exec');
I encounter the following error:
XPath or CSS locator is malformed: form select[name=User[role]]
What I am I doing wrong?