Do you know how I can assign a date to a date type field with the “Execute Javascript” sentence since it does not allow me to do it when running my script normally? I hope you can help me
What you mean by “sentence” here?
Also you need to show us what you have tried, in order for us to be able to help you!
1 Like
Do you want to create a “Date” in your Groovy Test Case script and pass the value into a “Execute JavaScript sentence” ?
Or do you want to let JavaScript to create a “Date” inside the browser and let it return the value to your Groovy Test Case script?
These 2 ways of processing is entirely different. Opposite direction. Please make it clear.
The best way to explain your intension is to disclose the code you wrote and show the output when you run it.