I have to save html page source of webpage and pass it to request endpoint.
I have done below code but I am not able to save .html
*** Settings ***
Library RequestsLibrary
Library SeleniumLibrary
Suite Setup Create Session example My Store
*** Test Cases ***
Example using the requests library
${response}= Get http://automationpractice.com/index.php
log ${response.content}
Open Browser http://automationpractice.com/index.php chrome
${myHtml} = Get Source
Log To Console ${myHtml}
Close All Browsers
Not really sure why you would want to save the page as a html file as you should be able to do all the tests you need with the responses variables you had? but I’m sure you have a reason.