Reuse cookies in Selenium with Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ก.ย. 2024
  • I'll show you how you can bypass login and CAPTCHA screens in your Test Automation scripts with the use of cookies in Selenium. Python is used in this video, but the logic is the same for any other language supporting Selenium (Java, C#, PHP, JavaScript and Ruby)

ความคิดเห็น • 45

  • @katherinesmith4692
    @katherinesmith4692 11 หลายเดือนก่อน +3

    followed each step, didn't work for me ...

  • @mohammadaqdas7998
    @mohammadaqdas7998 ปีที่แล้ว

    Thank you so much. I am grateful your video is simple and helpful and teach me to successfully login using cookies.

  • @luthfillawliet3903
    @luthfillawliet3903 2 ปีที่แล้ว

    You saved me a lot, thank you brooo, hope your channel grow more

  • @amanclementaranha7703
    @amanclementaranha7703 2 หลายเดือนก่อน

    Thanks, Great Work

  • @mishalubich9366
    @mishalubich9366 3 หลายเดือนก่อน

    It is not dynamic, it is a manual process, what if the session changes? Then you need to repeat the cookie-grabbing process.

  • @BakeNeko
    @BakeNeko ปีที่แล้ว +1

    Anybody can help me this error "Element not found or not clickable: Message: invalid cookie domain: Cookie 'domain' mismatch" ?

  • @tenshi8181
    @tenshi8181 2 ปีที่แล้ว

    worked like a charm, thank you very much

  • @abdellahouddou4509
    @abdellahouddou4509 2 ปีที่แล้ว +1

    Thank you bro, Great work ;)

  • @karinp167
    @karinp167 2 ปีที่แล้ว

    Thank you very much! This helped me a lot.

  • @stevenlai4772
    @stevenlai4772 ปีที่แล้ว +2

    Could someone help me?
    I did the same things
    but the error say:
    InvalidCookieDomainException: Message: invalid cookie domain: Cookie 'domain' mismatch

    • @aknownb8834
      @aknownb8834 ปีที่แล้ว

      the domain of the cookie and website should be matching if not it will produce an error

  • @deepalakshmi6247
    @deepalakshmi6247 3 ปีที่แล้ว

    Hi ! Great Video! Thank you so much

  • @KhalilYasser
    @KhalilYasser 2 ปีที่แล้ว

    Awesome. Thank you very much.

  • @TheMoeex
    @TheMoeex 3 ปีที่แล้ว +2

    This helped me so much. Can you tell me why I need to hit the page first before adding cookies for this to work ?

  • @guillermoesparza1488
    @guillermoesparza1488 ปีที่แล้ว

    Thank you so much ❤

  • @Alisa20021
    @Alisa20021 2 ปีที่แล้ว

    太猛了 幫助好大😍😍😍

  • @miguellaurente5937
    @miguellaurente5937 6 หลายเดือนก่อน

    ya no funciona para facebook, pero para otras paginas como platzi si me funciono

  • @acirfa
    @acirfa 8 หลายเดือนก่อน

    this code cant be use anymore because fb already patched it. OR i did something wrong along the way. I already tried 5 times and the last one fb said something wrong and we are working on it

  • @soniatix
    @soniatix 2 ปีที่แล้ว

    Perfect! Thanks!

  • @muhammadululajib2091
    @muhammadululajib2091 ปีที่แล้ว

    Thank you very much! !!!!!!!!!!!!!

  • @joaobatistacamposjunior2618
    @joaobatistacamposjunior2618 2 ปีที่แล้ว +2

    how can i fix it ?
    Message: invalid argument: missing 'name'
    i did file like the video

    • @Dzedrus
      @Dzedrus 2 ปีที่แล้ว

      Same for me! Did you find a solution?

    • @Dzedrus
      @Dzedrus 2 ปีที่แล้ว +2

      Ok found it! Go to clock, language and region>region>additional settings>change list separator to comma in your system settings

    • @mariotrade3233
      @mariotrade3233 2 ปีที่แล้ว

      did you find any solution??

    • @d4vidyo
      @d4vidyo 9 หลายเดือนก่อน

      had the same issue. Problem is that when reading the csv file it should be saved to the dictionary like this: {'name' : 'foo', 'value' : 'bar', 'domain' : '.com'} but it saved like this {'name;value;domain': 'foo;bar;.com'}
      add " delimiter=';' "like this:
      dict_reader=DictReader(f, delimiter=';')

  • @mfajutt
    @mfajutt 3 ปีที่แล้ว

    Bro deserve Like..>

  • @jaspaldabhi3374
    @jaspaldabhi3374 2 ปีที่แล้ว

    if i have cookie and i use proxy then is it works?

  • @myworldbox
    @myworldbox 3 ปีที่แล้ว

    best tutorial

  • @maatbeat5326
    @maatbeat5326 2 ปีที่แล้ว

    thank you so much

  • @omaroumessaoud8268
    @omaroumessaoud8268 ปีที่แล้ว

    amazing

  • @rise4gamers506
    @rise4gamers506 ปีที่แล้ว

    thankss buddy!

  • @mikehardware
    @mikehardware ปีที่แล้ว

    que navegador es?

  • @kosyoyanev
    @kosyoyanev 2 ปีที่แล้ว

    It is useful video, but you need to redo the voice part.

  • @enfantrouge666
    @enfantrouge666 2 ปีที่แล้ว

    thanks bro

  • @sabari956
    @sabari956 ปีที่แล้ว

    tq bro

  • @quangduy985
    @quangduy985 3 ปีที่แล้ว

    how to code with java?

  • @rohansharma9930
    @rohansharma9930 2 ปีที่แล้ว

    Can anyone share the code for this in java, please ??

  • @antranik6925
    @antranik6925 3 ปีที่แล้ว +1

    i am getting "unable to set cookie" error for trying to log in to youtube plz help

    • @rifatp3780
      @rifatp3780 2 ปีที่แล้ว

      Hey! Did u get any soln for this?

  • @dns_bp8805
    @dns_bp8805 3 ปีที่แล้ว

    This method work for login gmail?

  • @GargiChaurasia-n8z
    @GargiChaurasia-n8z ปีที่แล้ว

    this code is not a correct

  • @yellowdragon1982
    @yellowdragon1982 3 ปีที่แล้ว

    My application uses xsrf token along with cookies, it's not loging it fails to login..any other alternative?

    • @murilom8136
      @murilom8136 3 ปีที่แล้ว

      I have the same problem, did you find any alternative?

    • @yellowdragon1982
      @yellowdragon1982 3 ปีที่แล้ว

      Not yet may be need to try pickle