Custom Post Request

Hello,

We are trying to use a Selenium session to submit custom post requests! Whats the best way to do that?

Thank you

Hi nxfxcom -

can you provide more details and a concrete scenario, please?

Thx,
Philipp

Hello,

I am logging into a website using the standard Navigate, send keys, etc. Once I am authorized, I am trying to perform multiple actions against a set of records. Each record has an ID. The way the website is built, I can’t use the default find element approach as there is a lot of hover and AJAX involved. Instead, I recreated the call that is performing the action, which is a POST request, with the cookie etc., headers, and the ID in the post body!

Right now I am doing the below and manually copy the headers into the POST Headers for the request node

Ok, understood. So you could probably just call a fetch or XMLHttpRequest within an Execute Javascript node and pass the content back into your workflow.

Have a look at the paragraph regarding asynchronity in the node documentation, as both JS APIs work in an async way.

Does that make sense?

-Philipp