Is there a bug on line 1396 from FF.au3?
Switch $sOptionMode
Case "index"
If Not IsInt($vOption) Then
SetError(__FFError($sFuncName, $_FF_ERROR_InvalidDataType, "(int) $vOption: " & $vOption))
Return 0
EndIf
$sOption = "position()=" & $vOption + 1
Case "text"
$sOption = StringFormat("contains(.,'%s')", $vOption)
Case "name", "id", "value"
$sOption = StringFormat("@%s='%s'", $sOptionMode, $vOption)
Case Else
SetError(__FFError($sFuncName, $_FF_ERROR_InvalidValue, "(index|text|name|id|value) $sOptionMode: " & $sOptionMode))
Return 0
EndSwitch
And the way to do it better:
Case "text"
__FFValue2JavaScript($vOption)
$sOption = StringFormat("contains(text(),'%s')", $vOption)
In that case the function __FFValue2JavaScript($vOption) gives to it more flexibility to select by an option text value with non-ASCII chars.