NodeJS Jquery ajax trying to fill textboxes

I just made a little script with nodeJS and I’m currently trying to navigate to a website and log into it.
I thought maybe I can do this with Jquery and ajax. So all I want to do is to navigate to a website fill the textboxes with the values of my config file and click a button.
So I looked for the IDs of the textboxes I need to fill and the buttons I need to click and I tested If I could fill them in my browser console and It worked.
now my problem is I don’t know how to get it working within my script

function ajax1() {
url: ‘’,
type: ‘POST’,
success: function(data, status, jq_xhr) {