Strange error whenever I set text

So I am trying to set a text and whenever I do it, a strange symbol appears.
strangeSimbol

I do not know why this happens as it does not happen in Chrome. It is just a problem of FF

This is the way I do it:
WebUI.setText(findTestObject(‘Localhost Repository/Page_Ingreso Orden/input_Nmero de Documento_vPERSONADOCUMENTONUMERO’), ‘48031489’)

I also tried this way:
WebElement elementCI = WebUiCommonHelper.findWebElement(findTestObject(‘Localhost Repository/Page_Ingreso Orden/input_Nmero de Documento_vPERSONADOCUMENTONUMERO’),
5)

WebUI.delay(2)

WebUI.executeJavaScript(‘arguments[0].value=‘48031489’’, Arrays.asList(elementCI))

I have seen others having this problem - try search.

I use Firefox, I’ve never seen this problem.

Try…

@guillenoble59

There is " after the 48031489 . That might be the issue ?

1 Like

I do not think thats the issue as I tried using set text and problem keeps happening.

Send Keys should work for you. I had the same issue a while back

Thanks for the response. I tried using send keys, but it is not working. Maybe i am using it wrong? how would you do it?

WebUI.sendKeys(findTestObject(‘Localhost Repository/Page_Ingreso Orden/input_Nmero de Documento_vPERSONADOCUMENTONUMERO’), Keys.chord(‘48031489’) )

WebUI.sendKeys(findTestObject(‘Localhost Repository/Page_Ingreso Orden/input_Nmero de Documento_vPERSONADOCUMENTONUMERO’), ‘48031489’)

I could be making a fool out myself with this one, Im not positive which one works but thats the beauty of code, try it, if it fails, try something else