Element-34 / php-webdriver

thin php client for webdriver.
122 stars 55 forks source link

Get element by xpath don't work #8

Open eliasnogueira opened 12 years ago

eliasnogueira commented 12 years ago

I'm trying to get an element by xpath and the strategy is my the visible text in a combo.

I have tried a command like this, but always fail

$session->element("xpath","//select[@name='name']/option[normalize-space(text())='TEXT']");

As the combo values are dynamic I'm unable to use this by css selector

$session->element("css selector","select[name='name'] option[value='VALUE']");

There's a supported way to do that?

adamgoucher commented 12 years ago

Does it work if you use " inside the xpath rather than '?