c# - Selenium webdriver (tested ChromeDriver) cant find option by text containing umlauts? -
i have dropdown structure one: 
now, want use selenium webdriver select last option text (i cannot rely on option being last 1 actually).
trying this:
var text = " undersida"; var option = new selectelement(browser.findelement(by .cssselector("#menu_parentmenuid"))).selectbytext(text); gives me nosuchelementexception.
why?
here list of values have tried text:
" undersida" " undersida" "undersida"
i don't know if still issue, i'd contribute.
i think problem lies in nature (or understanding) of "no-break space".
not regular space in " " or string " "
want c# unicode representation of it
so string test should like:
"\u00a0\u00a0\u00a0undersida" take here: http://www.fileformat.info/info/unicode/char/a0/index.htm
Comments
Post a Comment