Hi, are there any chance I could get HTML headers using robot framework?
For example, I want to get a certain request header in the HTML request.
for example I want to get the request cookie of this google.com.
would it be possible?
Thanks
Hi, are there any chance I could get HTML headers using robot framework?
For example, I want to get a certain request header in the HTML request.
for example I want to get the request cookie of this google.com.
would it be possible?
Thanks
Hi, for example with the RESTinstance library you can use the Output
keyword to get the headers.
E.g ${headers}= Output response headers
(or request headers
) will store the response or request headers to a variable called headers
.
Hi Asimell,
would it the get request of coming from the frontend? like the actual page of google .com for example. the landing page request?
Thanks and regards
Hi Robot Man,
There are several libraries that provide this functionality, depends on what you are using?
some examples:
There may also be a way to do it with SeleniumLibrary using seleniumtestability but I don’t know how to do that.
Hope this helps,
Dave.
Hi @damies13,
Thank you for your kind response. Based on that libraries I think it will return response object of a site. What I want to extract si the request. Hopefully there is a way to extract the request. Thank you!
Hi Robot Man,
There are 3 types of request headers:
Regardless which of these it is, you can infer what the request header will be before hand.
Dave.