Team,
Can anyone direct me to tutorial on how to fetch cookie information from URL accessed via browser(chrome) and use it has Header in GETting rest response. Thanks.
Thanks and Regards,
Rajesh
Team,
Can anyone direct me to tutorial on how to fetch cookie information from URL accessed via browser(chrome) and use it has Header in GETting rest response. Thanks.
Thanks and Regards,
Rajesh
I would also like to see a response to Rejesh’s question.
For now, i set global variable and setting its value by copying and pasting from cookie information captured(Manually)
Use either getCookies()
(all cookies) or getCookieNamed(String key)
(part of) function from native WebDriver
import com.kms.katalon.core.webui.driver.DriverFactory
driver = DriverFactory.getWebDriver()
driver.manage().getCookies() // all cookies
driver.manage().getCookieNamed(key) // part of cookies
Many Thanks Vinh_Nguyen,
This is working fine for me.