Hi,
I am new to katalon recorder and getting this issue please help on this.
When I am trying to enter a value in textbox…Code is not showing any error but value is not displaying in textbox…below is the screenshot of html and recorded
code…please help.
HTML :
try with
command: runScript
target: $(‘#RegoFiedl1’).val(‘123abc’)
Hi George…Thanks for your response.
I tried with your suggested method and now its entering the value in textbox but when I am trying to move in to next page its giving validation error saying insert value.
Do you have any idea on this please suggest.
I am facing the same issue and I am using Katalon recorder 3.6.12. Could you please help fix this?
Background:
Using type command throws an error message " Element “id=SearchControl1_ctl04” not found.
Using the Command: runScript || Target: $(#SearchControl1_ctl04) || Vaue: sad156 (as suggested) did not throw any error but the value does not show up on the text box.
I am struck in this for a while. Can someone plz help?
PS: I will not be able to share the screen or link with which I am working on.
Hmmm. Maybe try to put value to this input from console of your page with JS. If it will works it should work from Katalon as well. If it’s not work from console try too point on this field in diifrent way for example instead “document.getElemenById” use “document.getElemensByClassName” or maybe even document.evaluate.
If none of it works it’s a problem with page it self so you need to talk with developers.
I had similar issue with typing postcode to input because of validation. In my case simple JS works fine - it was something like this: document.getElementById("postcode-input-id").value("12345");
The runScript command executes the JavaScript snippet in the Target field. The above code doesn’t look valid.
It looks like you are using jQuery, so try something like: