special characters stops select method finding the string
Brought to you by:
jvmenen
I am using WatiN 2.1.0 with Coypu and am trying to use it to select an option in a drop-down list.
If the option starts with a special character, e.g. ( or % the string is not found.
An example drop-down I have this problem with is:
So if I do:
browser.Select("abs value").From("ddlOption);
it is selected, but trying to get the first option will fail unless I select 1 for the value.
The error given is:
Test method SmokeTestScenario threw exception:
WatiN.Core.Exceptions.ElementNotFoundException: Could not find OPTION element tag matching criteria: 'Attribute 'innertext' equals '% funding' ignoring case' Or 'Attribute 'value' equals '% funding' ignoring case' at http://site