Problem related with "set text" in a field

Hello, ok I gonna attach the screen with the information.

Also, I find some topics related to this problem, but no one has a clear solution.

Third time…

Dude, the script is in the image…
I already read your link post…
This is the full script (the page, user and pass are property of the company, so I put *** in the script instead).

script manual mode…

WebUI.openBrowser(‘http://*******’)

WebUI.setText(findTestObject(‘Loguear pagina/input__ctl00CphContentLoginControl1TextBoxUser’), ‘*****’)

WebUI.setText(findTestObject(‘Loguear pagina/broupasslogin’), ‘***’)

WebUI.click(findTestObject(‘Loguear pagina/input_Debe ingresar la contrasea_ctl00CphContentLoginControl1ButtonLogIn’))

WebUI.navigateToUrl(‘http://192.168.20.122/PayStudioBOClient/View/Login/LoginPage.aspx’)

WebUI.click(findTestObject(‘Object Repository/alta de cuenta 2/Page_Pgina Principal Administrador/clientes’))

WebUI.click(findTestObject(‘Object Repository/alta de cuenta 2/Page_Pgina Principal Administrador/Alta de Cuenta’))

WebUI.selectOptionByValue(findTestObject(‘Object Repository/alta de cuenta 2/Page_Alta Cuenta/dptsucursal’), ‘1’, true)

Thread.sleep(5000)

WebUI.selectOptionByValue(findTestObject(‘alta de cuenta/Page_Alta Cuenta/comboSucOrigen’), ‘114’, false)

Thread.sleep(5000)

WebUI.selectOptionByValue(findTestObject(‘alta de cuenta 2/Page_Alta Cuenta/seleccionproducto’), ‘4’, true)

Thread.sleep(5000)

WebUI.selectOptionByValue(findTestObject(‘alta de cuenta 2/Page_Alta Cuenta/gaf’), ‘2’, false)

Thread.sleep(5000)

WebUI.click(findTestObject(‘alta de cuenta 2/Page_Alta Cuenta/checkgaf’))

Thread.sleep(5000)

WebUI.click(findTestObject(‘alta de cuenta 2/Page_Alta Cuenta/siguiente’))

WebUI.waitForPageLoad(5)

Thread.sleep(5000)

WebUI.selectOptionByValue(findTestObject(‘alta de cuenta 2/selectdocumentt’), ‘1’, false)

WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘49887924’)

Also is not possible to attach the logs error because the case doesn’t finish with an error.

HTML from the page

app field
image

@enemnogenus This happened with me on Firefox browser but for the fix was :

  • Add a click on the field where you want to enter text.
  • Then add a small delay of maybe 2 seconds
  • Then try to send text one character at a time.

Myabe worth a try also

Hello guys, thx for your answers.
I tried it with everything, the case still end well but is not working. The developer told me that exist some sort of “Mask” that check all the text that we put inside of the field. I have been using focus, delay, sending character one by one, mouse over + click + delay + send text
mouse over + focus+ delay + send text, etc.
Now I have no idea what to do…

Some examples…
WebUI.click(findTestObject(‘alta de cuenta 2/ingresadocument’))
Thread.sleep(2)

WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘4’)

WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘9’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘8’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘8’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘7’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘9’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘2’)
WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘4’)

WebUI.selectOptionByValue(findTestObject(‘alta de cuenta 2/selectdocumentt’), ‘1’, false)

WebUI.mouseOver(findTestObject(‘alta de cuenta 2/ingresadocument’))

WebUI.focus(findTestObject(‘alta de cuenta 2/ingresadocument’))

WebUI.delay(2)

WebUI.setText(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘4’)

Is there a way I can access the field ? On web ?

Hello and thank you again!
It’s not possible because is a local project from the company where I work(I mean, the domain is not public).
If you have the possibility to use skype I’m always available there. Through Skype I can send you videos or whatever you need.
Gratitude for your concern guys!
My skype is >> mathias.carranza@paygroup.com

Now I try with this, Katalon put half of the numbers on the field.
I should find out why…
:thinking:

WebUI.delay(5)

WebUI.clickOffset(findTestObject(‘alta de cuenta 2/ingresadocument’), 40, 5)

WebUI.delay(5)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘49887924’)

WebUI.delay(5)

I think you have a field which is automatically trying to add space between the characters you are entering. Fields like Credit Card numbers.

2 Likes

Hmm maybe :sweat:
So, do you see any option, if the field tries to add spaces?
Thx!

One of the solution I had to send Character one at a time you have already tried. Can you add the digits manually and share what you notice in terms of entering characters manually ? Is the filed selector is getting updated in real time ?

It goes till 7, I just need three more lines , what a weird behavior !!

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘4’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘9’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘8’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘8’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘7’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘9’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘2’)

WebUI.sendKeys(findTestObject(‘alta de cuenta 2/ingresadocument’), ‘4’)

What this field is for ? Is it a Field that is supposed to follow a certain format ? Like Security Number or so ?

This might be an issue:

Ask the developer(s) what it is doing.

Hello, No it’s just a normal field where we put a document.
Like:
Document: FIELD to enter numbers.
How I said before, Katalon is putting 5 of the 8 numbers that I send in the script.

Hello Russ, thx again, I saw this case with the developer of my company. He has more experience with Katalon and automation in General, like Selenium.
The only good thing that now I have the possibility to send at least some numbers, but is still a problem because I need to send them all the 8 numbers because if I send less the application tells me that the document doesn’t exist.
Related with the image that you attached I have no idea if is related to a bug in my app or in Katalon.

The point of the image is it is YOUR image from your attachments. It shows there is a keypress event handler on the element you’re having trouble with. I would be concerned enough to investigate what that handler is doing to try to establish if it is playing some part in the problem you’re having with setText.

Putting it simply, you’re having an unusual problem with a normally working API (setText). You need to look for something unusual about that field on that page. Your developers are doing something every time a key is pressed in that field. You should at least find out what that something is.

If you don’t do that, you’re just guessing. Guessing is not good engineering.

Ok, I gonna find out what it’s going out with this field.
Thanks again!

A post was split to a new topic: Cannot setText with Social Security number field