claudio-vieira / php-webdriver-bindings

Automatically exported from code.google.com/p/php-webdriver-bindings
0 stars 0 forks source link

invalid xpath for changing the option in a select tag #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a page with more than one select element with the same options
2. Change the value (select_value) on first select
3. Change the value on the second select

What is the expected output? What do you see instead?
The second value should change. Instead the first value changes

What version of the product are you using? On what operating system?
Selenium 2.21, Windows 7 

Please provide any additional information below.
I suggest change the WebElement.php select_label, select_value and select_index 
XPATH from //option... into xpath=./option...

Your current implementation selects the option elements from the ROOT of the 
DOM rather than current element.

Original issue reported on code.google.com by adrian.a...@gmail.com on 24 Apr 2012 at 8:22