How to get cookies by selenium in open bullet



  • How to get cookies by selenium in open bullet i added block get cookies but i don't know what type in "inputreceived_1656168214579897.png "



  • you need to put <COOKIES>

    BROWSERACTION Open 
    NAVIGATE "https://google.com" 
    BROWSERACTION GetCookies "<COOKIES>"

  • Admin

    Not really, you have to put the domain for which you want to get cookies, in this case google.com



  • EXECUTEJS "document.cookie"

    try this it return all cookies



  • how to use coolkiese i get it from BROWSERACTION GetCookies "<COOKIES>"
    as normal requests "coustem cookies"



  • @Ruri
    Haha I have been doing this wrong but achieving what I want, classic part when the code is wrong but do the job .

    @eslambeto a few ways or thing that you can do (parse, custom and Headers)

    BROWSERACTION Open 
    NAVIGATE "https://google.com" 
    BROWSERACTION GetCookies "google.com" 
    PARSE "<COOKIES(NID)>" LR "" "" -> VAR "mycookies" 
    REQUEST POST "https://google.com"   
      COOKIE "custom: <mycookies>" 
      HEADER "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36" 
      HEADER "Pragma: no-cache" 
      HEADER "Accept: */*" 
      HEADER "custom Cookies: <mycookies>"

Log in to reply