How To Execute Selenium Scripts On Already Opened Browser Using Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.พ. 2021
  • In this video, I will share how to execute selenium test or script on already opened browser using Chrome DevTools Protocol in Python.
    Chrome Devtools
    chromedevtools.github.io/devt...
    All Videos
    / mukeshotwani
    All Playlist
    / mukeshotwani
    Connect with us:
    Linkedin- / mukesh-otwani-93631b99
    Instagram- / mukeshotwani
    Facebook Group- / 256655817858291
    Facebook Page- / seleniumwebdrivermukesh
    Twitter- / mukeshotwani
    Blog- learn-automation.com
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @alexjulius69
    @alexjulius69 ปีที่แล้ว +16

    YOU'RE MY FKING HERO! I've been grinding the whole damn day trying to interact with the same webdriver session and to no results, until you showed how it's done... I've done some tweaks of course, I do everything inside my python code, no console required, BUT without you I couldn't have done NOTHING. Thank you again.

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

      I've been getting a deprecation warning, do you know any solution?

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

      @@juanpablomessmer2630 same here did you get any solution ?

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

    From Nigeria 🇳🇬, you are amazing.....This solved a lot of problems

    • @elookoye2231
      @elookoye2231 11 หลายเดือนก่อน

      Yo what project are you using selinium for

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

    Omg.... you saved me so much time. THANK YOU!!!

  • @vijayppatel
    @vijayppatel 3 ปีที่แล้ว +4

    Very Nice, saved huge amount of time with simple steps to introduce.

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

    Looking forward for more videos on python sir thank u mukesh..

  • @rudiantoxu2497
    @rudiantoxu2497 8 หลายเดือนก่อน +2

    I've been looking for couple of days for thinking this, you're definitely a live saver. Thanks sir for your kind sharing

    • @Mukeshotwani
      @Mukeshotwani  8 หลายเดือนก่อน +1

      You are most welcome

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

    Man, I would watch this guy code the whole day!

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

    Quality Content, precise You rock mannnn solved my problem of login cookie

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

    Thanks for showing us a working solution!

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

    Thank you , This is very useful video .👍👍

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

    Thanks for the new learning

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

    Amazing. Thank you very much for this awesome tutorial.

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

    Thanks much for doing with python.

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

    fantastic tutorial! thanks for explaining everything clearly

  • @Duke_Nukem-42
    @Duke_Nukem-42 ปีที่แล้ว

    Thanks a lot! It was very helpfull!

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

    Thank, you Sir. Really appreciate your effort.

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

      You are most welcome Chetan.

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

    Very clear explanation brother. thanks a lot

  • @jonskill2236
    @jonskill2236 5 หลายเดือนก่อน +1

    Great video, helped me out a lot!

    • @Mukeshotwani
      @Mukeshotwani  5 หลายเดือนก่อน +1

      Awesome, thank you!

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

    Love this channel 👍🏻👍🏻👍🏻

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

      Glad you liked it! Thanks Gulshan

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

    I must say it's a Life saving hack. Thanks a lot and really appreciate for demonstrating in Python.

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

      Glad you liked it! Godwin. Cheers

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

      nice

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

      hey can you give me source code im getting errors

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

    Thanks for the video, btw: Do you know if CloudFlare DDoS protection will redirect correctly if it gets executed when doing tests using this method shown in the video? I ask because when you use the chromedriver even with user data dir and profile directory, after several tests CloudFlare DDoS protection appears and it doesn't redirect you because it thinks you are a bad bot that wants to shut down the website in which you are doing tests, please let me know if this doesn't happen when using this method.

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

    cooool!!! internet rebellion time!

  • @PRO-ko4gx
    @PRO-ko4gx ปีที่แล้ว +1

    Great content! Thanks bro!

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

      Glad you liked it! Thanks Mate

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

    Nice really appreciated

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

    GOD! Thank you for this tutorial! 🏆

  • @Live-Freely
    @Live-Freely 2 ปีที่แล้ว

    Thank you.

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

    Thank you bro

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

    It was nice and easy.

  • @subpakk
    @subpakk 9 หลายเดือนก่อน +1

    You saved my life, the Selenium visual Chrome driver cannot show some image file frome web, thank you.

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

      Most welcome Sub

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

      can you please share the code?

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

    Let Me tell You. I love hearing Your voice Mukesh. So concise, so beautiful. I almost remember Cherry Blossoms while I was watching this video. So good. So so good~ xFredAgain&Again I cannot tell You that if I could just hear You. Explain. The Code. SANK YIOUUU SIIIR 😊🎉

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

    loved the fact that it is available on python also

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

      Yes I am loving this too.

  • @junaidmughal3806
    @junaidmughal3806 หลายเดือนก่อน +1

    Thank you sir

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

    awesome . thank you . you are nice man bro. xxxx

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

    thanks man it worked!

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

      You're welcome! Cheers

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

      I can't get it working, Nothing is happening in the browser.

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

    Nice video sir❤️❤️❤️❤️❤️❤️

  • @TheVicj92
    @TheVicj92 8 หลายเดือนก่อน +1

    Thanks!

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

    thanks for this tutorial , this can it run with firefox

  • @HelloWorld-dn9mm
    @HelloWorld-dn9mm 3 ปีที่แล้ว +3

    Cool
    Could you reply, how to run tasks in headless mode using this?

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

    works great if you have only 1 browser instant open for that account but what about if you have many accounts open...can we access that specific instance?

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

    hello, I tried to do as you said, and it worked for about a week but all of a sudden python just isnt going to the opened chrome tab, I updated my webdriver and made sure it is in line with my chrome version and it works without options.
    cmd:
    cd C:\Program Files\Google\Chrome\Application
    chrome.exe --remote-debugging-port=8989 -user-data-dir="C:\Users\Mac\Desktop\Drive D\MJ\Python\chromeprofile"
    in python:
    opt = Options()
    opt.add_experimental_option("debuggerAddress", "localhost:8989")
    driver = webdriver.Chrome(options=opt)
    please help, very much appreciated

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

    nice 👍

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

    Great sir, Is there any github link for the code ?? I had'nt found in description.

  • @amongus-rq2hb
    @amongus-rq2hb 4 หลายเดือนก่อน +1

    Bro you are a fucking GOAT. no way bro you are the one who saved my life. thankyou so much bhai.

    • @Mukeshotwani
      @Mukeshotwani  4 หลายเดือนก่อน

      Thank you so much it means alot to me.

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

    I am trying to make a whatsapp bot. but web needs a registration right after opening the window. so I needed this buddy. thx

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

      Great Orhan, I am glad it helped.

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

    Tks from Brasil!! o/

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

    Hey Mukesh, can you do the same thing using robotframework?

  • @user-tr6xo1ze5k
    @user-tr6xo1ze5k 7 หลายเดือนก่อน

    how can i open slenium browser window at client(user) side in selenium with python when I hit go button on my auto login system?

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

    Hello, what if o want open a new brownser, and get logged in, after that I want open a new browser but with the same session (that remain logged in) , how can I do it? I want be logged in two different windows of same browser and be managed each window with different parts of script

  • @saidulmolla3477
    @saidulmolla3477 10 หลายเดือนก่อน +1

    Hi bro this code is not working chrome version 117. Could you please help us with this version?

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

    Can this be done in firefox? Not sure if it has the dev tools

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

    Same is possible with IE ?

  • @user-fm7we2gi5h
    @user-fm7we2gi5h 4 หลายเดือนก่อน

    In this code I need to manually type the username, password and two factor auth, after that code should run. what to do?

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

    First to watch..😇

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

    fantastic!! how could i use remote debugging with proxy ?

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

    How would you do this exact same thing on a Mac? I’m having trouble setting up the local host.
    Any help is appreciated, thanks!

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

    Great tutorial! How can i download the chrome driver shown at 6:50?

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

    I use to update my profile inevery 5 minutes on a local job platform, Thank Yoıu

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

      hello there, did this method worked with you,
      selenium keep getting stuck at my end

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

      Awesome Yasin

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

      Hey Peter, what issues you are getting here.

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

    is there any way to open in firefox also in this same method

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

    Hello sir how can i do login multiple Facebook ids in multiple chrome profile and these login ids save for me if i opened these chrome profile than open Facebook that ids will be open how can i do that ???

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

    Can you do the tutorial in robotframework?
    this tutorial is lit

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

    Please create a complete playlist for framework development in selenium-python.

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

      Hi Nasir, sure will do soon.

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

    This is so great, thank you. Is there a way to also include the first part into the script? I mean that instead of going to "cmd" and manually inputing all the "-- remote-debuggin-port" we can also include that in the script somehow?

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

      You can add this to your code:
      import shlex, subprocess
      subprocess.Popen(shlex.split(r''' FIRST PART '''))
      Or also you can put it in a .bak before the "start python file.py"

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

      Mukesh, is it possible to explain/comment on this question?

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

      you can use pyautogui to do that part by gui automation

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

      Yes make a bat file and then include in your program using subprocess module

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

      i think , os module has a class that inputs cmd commands

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

    Sir, can you please say why did you take remote-debugging-port (8989) instead of (9222) which is shown on Chrome Devtools Protocal... What port number should I take

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

      You can use any port number you can use 8989 or 9222 you just have to the same in program.

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

      @@Mukeshotwani Thank You

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

    for firefox
    what i have to do bro

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

    Hello Sir, How to achieve this in macbook? Can you please guide me.

  • @FireFly969
    @FireFly969 3 หลายเดือนก่อน +1

    So for me I want to do a script that is automated to do some scraping, but how I can automate the part of cmd?

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

      Using batch command or shell

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

    sir please make a video same for Internet Explorer,

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

    How to do this in firefox browser as experimental_option debuggerAddress is not present. If anyone know help me out...

  • @malyajlikhar5605
    @malyajlikhar5605 7 หลายเดือนก่อน

    Any Idea how do we remote debug from a host computer to remote computer using webdriver.Remote(command_executer=:port) instead of webdriver.Chrome()

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

    thankyou
    others had java n shit
    but I love Python

  •  3 ปีที่แล้ว

    Hello, you opened the browser in cmd, how can i open like this but in a python code? i mean like: my code open the chrome in debug mode and after connect

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

    sir its showing error
    No pyvenv.cfg file

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

    Can i use with firefox browser ? If its possible, can u make a video teaching us ?

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

    can i use headless mode?

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

    Please help I got this error. Do you know how to fix it? driver = webdriver.chrome(executable_path= "C:\\Users\\PC-home\\Documents\\Dan\\chromedriver.exe" , chrome_options = opt)
    TypeError: 'module' object is not callable

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

    Thanks Mukesh!! Is there a way to use selenium on Chrome with the Chrome extensions already installed?

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

      just use specific profile where it was installed.

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

      @@mrnobody_23 how to?? how to use user profiles where i have already logged in??

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

    sir but without command proamt how can we use

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

    how to achieve this thing for edge

  • @user-ug3ug9rh7m
    @user-ug3ug9rh7m ปีที่แล้ว

    Is there other way to connect already opened browser without using remote debugging port? 🤔

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

    It was great video but i was thinking can we open the browser which we opened manually in which already all cookies are stored which helps us bypass login option?

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

      moreover how to perform this action on linux, as i am a newbie.

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

      Hey Shuham once you open browser using DevTools you can login which will have session active, then you can use the same.

  • @user-ev9ct6ht9o
    @user-ev9ct6ht9o 9 หลายเดือนก่อน

    can you make a tutorial or send some code on how to do this in JS? ive been beating my head for three days trying to figure it out

  • @esavage4642
    @esavage4642 9 หลายเดือนก่อน +1

    ur the GOAT

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

      Thank you sir

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

    How to do this on Javascript :(
    ?

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

    getting error please anyone help!!
    '''DeprecationWarning: use options instead of chrome_options
    driver = webdriver.Chrome(executable_path="F:\\top secret\\chromedriver.exe", chrome_options=opt)'''

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

    Hi Mukesh , Very clearly explained.
    I am trying to save cookies for already logged in session in python and trying to use it for every instance of web driver to get rid of login but i am not able to achieve it, can you please do a small video on this

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

    This worked for me for a few days. But now it gives me and error saying: selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:9222
    from session not created: This version of ChromeDriver only supports Chrome version 91
    Current browser version is 93.0.4577.82

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

    Hello sir can you make video on multiple facebook ids auto login on Facebook with chrome users. i have multiple facebook ids likes thousands of ids and i am tried to login in making new chrome user and login and this will take much time from can you tell me plz humble request ??

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

    hello sir nicely explained....can u plz explain how to run the session in an already logged in account???

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

      Hi Fringe, it only works with chrome started by CDP commands.

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

      Wondering the same thing as @fringe, can you elaborate a little bit more please?

  • @pierremichel-angealexandre4488
    @pierremichel-angealexandre4488 2 ปีที่แล้ว +1

    please how can i use it (chromiun --remote-debuggin-port=9105 --user-data-dir='/home/olix/Desktop/data9105') in linux but have it stay like it is on windows even if i close terminal. ???
    thanks for answer.

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

      Once you close the terminal it will close the session.

    • @pierremichel-angealexandre4488
      @pierremichel-angealexandre4488 2 ปีที่แล้ว

      @@Mukeshotwani thank you for your answer you are a good person. what I would like to know is how to do to keep the session in linux if I want to close the terminal or is it impossible to do? thank you.

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

    Hey Mukesh ! I wish to make the same process in Firefox. Can you tell me small steps in the comment plz.

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

      Hi Malik, I will try for FF as well if possible.

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

    how to setup this for mac

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

    How to open a link from signed in chrome profile using selenium python. I googled and didn't found the correct way to do that. Your help would be great.
    Thanks

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

      Hi Gowtham, you can start default user profile.

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

      @@Mukeshotwani can you guide me how

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

    Hi Mukesh,
    In the start i got error likr"DeprecationWarning: use options instead of chrome_options". so i tried using options but ended with following error.
    selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:8080
    from chrome not reachable.

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

      Previously i was using "chrome.exe --remote-debugging--port=8080 --user-data-dir="C:\Drivers\ChromeData""
      But i use the following cmd line to open a chrome in debugger mode , i am able to proceed.
      chrome.exe --remote-debugging-port=8080 --no-first-run --no-default-browser-check --user-data-dir="C:\Drivers\ChromeData"

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

      Great Minati thank you for updating.

    • @user-ot9nm4we9y
      @user-ot9nm4we9y 3 ปีที่แล้ว

      thank you so much

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

      Thanks for sharing

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

    by using jupyter notebook or something similar you can easily execute code line by line thus you don't have to comment previous lines.
    In my use case I wanted to make a web bot which involved a lot of trial and error and loading session each time was pain in the ass.

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

    Please do this for c#... Pls pls

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

    Does it work on mac as well ?

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

    Hi man thanks for your support, i followed your steps and did the same code but when i run the code with the browser closed its give me this error :
    "selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at localhost:8989 from chrome not reachable"
    but when i run the chrome.exe pointing to the session from the console i can open the session created normaly. Looking forward for more videos, thanks again!

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

      did you solve this? Getting the same error.

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

      im getting the same error too

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

      did your problem slove? can you give source code?

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

    how can we change the download director to download files to a specific folder?

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

      Hi Ninjamoshi,
      Official link chromedriver.chromium.org/capabilities
      Please find below code
      ChromeOptions options = new ChromeOptions();
      Map prefs = new HashMap();
      prefs.put("download.default_directory", "/directory/path");
      options.setExperimentalOption("prefs", prefs);

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

      @@Mukeshotwani hi sir can give an example regarding the same ? like make video or a blog

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

      using python

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

      also can ou change the download path On Already Opened Browser?

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

    can we open another tab in this existing window

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

      i tried with driver.execute_scripts("window.open();"), but didn't work

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

    2:25 why did u change protocol from 9222 to 8989?

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

      You can use any port and make sure you use same port number is code as well. I have 8989 is my code too.