CS agents will respond to tickets via forum instead of private helpdesk to support other users with similar issues.

How can I set cookies for my browsers in Katalon?

edited January 10 in Tips and Tricks
As the title says

Thanks for help.

Comments

  • It is quite easy:

    import org.openqa.selenium.Cookie
    import org.openqa.selenium.WebDriver
    import com.kms.katalon.core.webui.driver.DriverFactory
    Cookie ck = new Cookie("name", "value");
    WebDriver driver = DriverFactory.getWebDriver()
    driver.manage().addCookie(ck)
  • @Ana Hong said:
    It is quite easy:

    import org.openqa.selenium.Cookie
    import org.openqa.selenium.WebDriver
    import com.kms.katalon.core.webui.driver.DriverFactory
    Cookie ck = new Cookie("name", "value");
    WebDriver driver = DriverFactory.getWebDriver()
    driver.manage().addCookie(ck)

    Thank you

Sign In or Register to comment.