Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
CAnnot SElect an option from a list using Xpath #250
I am trying to select the first item from a dynamic list using web guy.
I have tried every variation of X Path I can think of, but I always get the same result.
WebDriver\Exception\InvalidSelector: The given selector //html/form select[name=type]/* is either invalid or does not result in a WebElement.
can someone tell me if the above Xpath for the first option of a select list named type is correct?
Thats strange, I dont see anything on my Twitter. Anyway, tried this:
$value = $I->grabTextFrom('form select[name=aid]:first-child');
and I end up with the same error.
Just as a followup I created a self answered question on http://stackoverflow.com/questions/17413985/select-an-option-in-a-dynamic-select-with-codeception