How to get cookies with selenium RRS feed

  • Question

  • i have tried


    but i alawys get x =0 even thou i have cookies stored


    Friday, January 11, 2019 3:08 AM

All replies

  • When you run SeleniumBasic it creates the browser instance with a new fresh profile.  The instance has no cookies or browser history.  How do you know you have cookies?
    Friday, January 11, 2019 1:42 PM
  • i know i had cookies because i accepted some cookies during the new instance created by selenium. and i checked the cookies manually in the new browser instance stopping the vba code during certain points.

    but after some time studying here is what i found out :

    even thou it said i had 13 cookies, those cookies where not avaible to get , it seems like there are cookies that can't be catch by code, so thats why i was not able to get them. 

    Sunday, January 13, 2019 5:24 PM
  • I tried it on one of my programs and had 96 cookies so it does work.
    Sunday, January 13, 2019 11:29 PM
  • yes it works , but check the cookies manually pausing the code and checking the cookies in google chrome seetings. you will see that the number of cookies showed in google chrome willl be diferent than the number of cookies catched with selenium.
    Sunday, January 13, 2019 11:37 PM
  • It doesn't count the secure cookies.
    Monday, January 14, 2019 2:08 PM