Selenium Browser Automation in Python

Поділитися
Вставка
  • Опубліковано 14 жов 2024

КОМЕНТАРІ • 149

  • @alex59292
    @alex59292 2 роки тому +159

    (pin this) you can use sellenium undetected driver since most websites detect normal selenium, this uses your normal chrome and not fresh private chrome

    • @okrq
      @okrq Рік тому +4

      How do you do that

    • @coding1806
      @coding1806 Рік тому

      @@okrq fcking go make research

    • @krishlorend.sinevasan6945
      @krishlorend.sinevasan6945 Рік тому

      how?

    • @tangoalpha1905
      @tangoalpha1905 11 місяців тому +4

      I have been searching around trying to find a solution for this. Someone come and bless us with the knowledge!

    • @ImTheRealCam
      @ImTheRealCam 7 місяців тому

      You do know it’s so easy to search pip’s for python… btw the thing you 3 have been looking for is selenium_stealth.

  • @TH-nl1sb
    @TH-nl1sb Рік тому +21

    I always had a difficult time finding the right HTML elements by myself. I wish I had known you earlier. I will continue to watch all your videos. Thank you! You are a great teacher!

  • @knalsgtes6684
    @knalsgtes6684 Рік тому +5

    I have search so many tutorials on selenium as reference for our automation project,, and this is the best ever tutorial.

  • @Delirium132231
    @Delirium132231 2 роки тому +11

    For selenium users: Action Chains is a nice discovery for those who didn't know before. Ofcource if FrontEnd developer was a nice guy

  • @lamar2658
    @lamar2658 2 роки тому +26

    Hey if you could do a video on XPATH and maybe the professional ways to load and sync tabs that would be great! Very helpful and useful video!! Going to use this for sure! Thanks

  • @DavidBacarella-v7z
    @DavidBacarella-v7z 2 місяці тому +2

    My compliments on you your video. It was focused, enabling, and well thought out. The only thing I want is "more" of these awesome vids. Thank you!

  • @garyhottinger7384
    @garyhottinger7384 Рік тому +10

    Excellent! Clear and concise. I just retired and can't wait to see if I can automate some of my hobby web work.

  • @mr_cupcakes1808
    @mr_cupcakes1808 6 місяців тому +1

    bro's teaching is awesome
    thank you!

  • @tripphouse3534
    @tripphouse3534 29 днів тому

    I just started using selenium and it’s really fun so far

  • @DavidBacarella-v7z
    @DavidBacarella-v7z 2 місяці тому

    My compliments on your video. It was focused, enabling, and well thought out. Thank you.

  • @codehokage1977
    @codehokage1977 Рік тому +4

    Question when finding the "7 in 1" button why don't you just copy the xpath off the inspector tool?

  • @neatcomrade8537
    @neatcomrade8537 2 роки тому +5

    Dude! this video is exactly what i needed! thank you!

  • @ibrahimib9020
    @ibrahimib9020 Рік тому +1

    thanks man... it helped me a lot. I was starting to learn this but cannot find the right syntax to view the page. but this worked for me

  • @imanthiu
    @imanthiu Рік тому

    I learned a great deal from this video. It didn't help me do what I was I looking for but I always like learning new things.

  • @heyalejandro175
    @heyalejandro175 Рік тому +1

    So cool...thank you very much for this...Yes an XPATH video would be amazing!
    Thanks again!

  • @ucxanguyen2395
    @ucxanguyen2395 2 роки тому +1

    What a great video. Super well explained, thanks! Any video in your channel on how to record yourself with soft soft? I'm under the

  • @karlybyrd1551
    @karlybyrd1551 9 місяців тому

    I apologize if this is a dumb question, but why would you not just search for the link you're trying to find instead of searching for the link inside the correct div? That seems like an extra unnecessary step that just led to finding the link anyway.

  • @faridalijani1578
    @faridalijani1578 2 роки тому +1

    are u running Chrome as administrator or user in ur machine? I open the browser but nothing is shown and it crashes after a while! I use conda btw

  • @Vibeness1
    @Vibeness1 Рік тому +1

    why use xpath to find the object names instead of e.g. EC.text_to_be_present_in_element ?

  • @freecreator6426
    @freecreator6426 7 місяців тому +1

    I applied one by one, but when clicking "run" it says that the module is not defined. Tried many times.

  • @musicarroll
    @musicarroll Рік тому +1

    I think your selenium tutorial became an XPath tutorial.

  • @Relderf
    @Relderf Рік тому

    What a professional video, neat.

  • @fakhruddindahodwala6816
    @fakhruddindahodwala6816 Рік тому

    How were you able to format the html elements in your output terminal window? i get all the characters showing up line by line

  • @ghefley
    @ghefley Рік тому

    Well done and thank you for sharing this.

  • @thefunnyvlogger8218
    @thefunnyvlogger8218 Рік тому

    Please can you tell me which framework we are using here?

  • @GabrielAGilO
    @GabrielAGilO 6 місяців тому

    do ahve you encounter this error before "NoSuchWindowException: Message: no such window: target window already closed
    from unknown error: web view not found" I have try to put many URLs but I keep getting the same error. i have looked only and I thought by adding the Service and Options would work but it did not, Any help

  • @petrokey
    @petrokey Рік тому

    Hello, can you please advise on classic web scripting on python? Any resource or link..

  • @JacobJavor
    @JacobJavor 4 місяці тому

    Thank you, was good introduction

  • @szwyr8380
    @szwyr8380 Рік тому

    Why don't you just click the element to get the copy of the xpath ?, i mean u just right click on the div tag or another tag and then copy the xpath... Or it would be a better way to just read on the inspect element ???
    Because i new to this and didn't understand about this xpath things

  • @DKMRFCBrlz
    @DKMRFCBrlz 9 місяців тому

    Amazing video!

  • @mkhadka123
    @mkhadka123 Рік тому

    This is nice to get a kick-off

  • @xxjblexx
    @xxjblexx 2 роки тому

    I Hope You Do A Video On XPATH Asap... That is The Core in Selenium Library To Find And Search Elements

  • @sonerkocak5058
    @sonerkocak5058 2 роки тому +3

    Will there be an Instagram entry in the next video?

  • @HAInett
    @HAInett Рік тому

    that is what I needed :)))) thank you so much

  • @66abady
    @66abady 2 роки тому

    thanks man. I really wanna know if we can use this method when we don't have a browser installed. lets say if I was to deploy this script on a sever.

    • @codaq4043
      @codaq4043 Рік тому +3

      Yup, you need to make it headless and host the script on aws

  • @pruzylo
    @pruzylo Рік тому

    Perfect video length.

  • @sonerkocak5058
    @sonerkocak5058 2 роки тому +2

    Thank you! I am your fan❤️🫣!

  • @adisonfryman144
    @adisonfryman144 Рік тому +3

    OK why do you put the install in there, I just ran this code and got .....Downloading: 100%|██████████| 6.79M/6.79M [00:00

  • @firstandlast4435
    @firstandlast4435 Рік тому +3

    I don't know. My browser just closes right after finishing script. I use
    from selenium.webdriver.chrome.options import Options
    chrome_options = Options()
    chrome_options.add_experimental_option("detach", True)
    browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
    but it doesn't help at all

    • @buzzark9133
      @buzzark9133 Рік тому

      Same, and no matter what I do it always closes after whatever script i put down. If you find a solution please let me know.

    • @buzzark9133
      @buzzark9133 Рік тому

      Hey i just found a solution, let me know if you wanna hear it

    • @firstandlast4435
      @firstandlast4435 Рік тому

      @@buzzark9133 it'd be nice)

    • @firstandlast4435
      @firstandlast4435 Рік тому +2

      @79_22_16 M for now i found that you can place infinite loop after code, so your script won't be finished and browser won't close, but that's definitely awful decision)

    • @buzzark9133
      @buzzark9133 Рік тому

      @@firstandlast4435 ^ you too, check the reply above

  • @RocketLR
    @RocketLR Рік тому

    Aah wish i found this earlier.
    Had a site that needed java script render for the tables to get populated with the data..
    The online solutions did not work for some reason.. Got a bunch of chromium errors and stuff.

  • @amerismartin2854
    @amerismartin2854 Рік тому

    How do I make selenium open default chrome profile? Or desired chrome profile?

  • @jamievercetti
    @jamievercetti Рік тому

    is there a more explanatory version of this video

  • @ArneSchwarck
    @ArneSchwarck 2 роки тому +1

    Do you know why even if detach is true the chrome window will close if a KeyboardInterrupt is sent in the Terminal window?

  • @ShahzadAli-zr4ro
    @ShahzadAli-zr4ro Рік тому

    you are great teacher of this century on youtube
    please let me know if anything i can do for you

  • @hansilsepp
    @hansilsepp Рік тому +1

    Es scheint, dass es ein Problem mit dem Webdriver-Manager gibt, der versucht, eine nicht vorhandene Version des ChromeDrivers herunterzuladen. Ich habe Chrome 117.0.5938.92 gibt es da eine Lösung?

    • @isro3085
      @isro3085 4 місяці тому

      Hab auch das Problem, hast du es lösen können?

    • @hansilsepp
      @hansilsepp 4 місяці тому

      bin mir nicht ganz sicher, ob das die lösung war oder ob ich das problem nicht lösen konnte: man kann den webdriver auch sonst manuell ohne das managermodul von python instllieren (exe herunterladen), link der website weiss ich leider nicht mehr, allerdings muss man das nach ca. 1/2 Jahr immer wieder manuell update (neuer driver installieren)

  • @soumyaranjandash3597
    @soumyaranjandash3597 Рік тому

    Thanks this is helpful 🔥

  • @nabilpro1662
    @nabilpro1662 2 роки тому

    The best as normal ❤

  • @bhasim4299
    @bhasim4299 2 роки тому +1

    Chrome driver didnt work, but firefox did. just saying

  • @Airdrop_Hunter113
    @Airdrop_Hunter113 7 місяців тому

    Which platform is that in which you are coding??

  • @doudline2662
    @doudline2662 11 місяців тому

    Thank you sir.

  • @mehdismaeili3743
    @mehdismaeili3743 2 роки тому

    Excellent, thanks.

  • @MrAybebs
    @MrAybebs Місяць тому

    why you dont search the elements with dev tools?

  • @your_butter_chicken
    @your_butter_chicken 8 місяців тому

    Hi, how to capture Screenshot in this new selenium IDE? Pls help :)

  • @wėb3ĆryptO51
    @wėb3ĆryptO51 10 місяців тому

    Which code editor are you using?

  • @mpumi1024
    @mpumi1024 Місяць тому

    Awesome

  • @kwameappiahkumi5833
    @kwameappiahkumi5833 Рік тому +1

    Does selenium work only on Google Chrome❓

    • @mkhadka123
      @mkhadka123 Рік тому

      no it has drivers for other popular browsers as well e.g. geckodriver for firefox

  • @humpalestine
    @humpalestine Рік тому

    It would be better if you share the python script you are describing.

  • @hesam8845
    @hesam8845 Рік тому

    how can I scrape google map to get contact info in specific city?

  • @tulasisanjay
    @tulasisanjay 11 місяців тому

    How can I automate the process of claiming Binance Crypto Boxes on their webpage using code extracted from Telegram?

  • @swordart802
    @swordart802 Рік тому

    i want to use in real browser not in chormedriver how can i when i tried it doesnt get the url after browser opened

  • @JontheRippa
    @JontheRippa Рік тому

    Wow thank you 👍

  • @aleterra
    @aleterra Рік тому

    is there any way to solve the captcha?

  • @BrickToTheHeadOfficial
    @BrickToTheHeadOfficial Рік тому

    i installed selenium and its in my scripts folder for python and everything but i keep getting "ModuleNotFoundError: No module named 'selenium'"

    • @WEಕೆ
      @WEಕೆ 10 місяців тому

      i have same issue

    • @awadecoco12
      @awadecoco12 9 місяців тому

      its because you are dowloading it in another interpreter

  • @mrrl37
    @mrrl37 Рік тому

    Thank you

  • @TestSubject-ik4oq
    @TestSubject-ik4oq 6 місяців тому

    For the site i am trying to do i get handshake failed

  • @qutaibabs1
    @qutaibabs1 7 місяців тому

    which IDE you are using ?

  • @madalinam5418
    @madalinam5418 3 місяці тому

    how can you deploy it and run recurrent on a server?

  • @jamesmoisesllalleperez3079
    @jamesmoisesllalleperez3079 11 місяців тому

    y si quisiera que guarde información en la misma página?

  • @jw200
    @jw200 2 роки тому

    thanks, subbed.

  • @sever5859
    @sever5859 2 роки тому

    Interesting video

  • @Zhacker0927
    @Zhacker0927 Рік тому

    I got error WebElement object is not iterable > help please!

  • @bilalsadiq6995
    @bilalsadiq6995 3 місяці тому

    what is the software name you run sofware

    • @idfk_vfx
      @idfk_vfx 3 місяці тому

      Pycharm I think

  • @neatcomrade8537
    @neatcomrade8537 2 роки тому +1

    also how do i get past the captchas?

    • @tinaperry8632
      @tinaperry8632 Рік тому

      I don't have a good answer to this. The only option I know of is to use a service that gets frelancers to solve the chptchas for you. But idk how to do that it also matters what type of captcha you get/are talking about plus since it's an arms race something that might work now might not in the future, atleast untill ai gets so powerful it can pass as a human in basically an situation if it does get to that point. The easiest capcha is the one you just click with no pictures or audio or math (yes i have seen a captcha that uses math) or anything else and it will accept or denie your request based on your browser activity and mouse movment.

  • @robertharrison1601
    @robertharrison1601 2 роки тому

    As in QUORUM of NINE¿?

  • @nouhailafarajy6475
    @nouhailafarajy6475 7 місяців тому

    hllo can we use selenium for downold file pdf from gmail and tnx in advance

  • @waljoshamarsphost6820
    @waljoshamarsphost6820 Рік тому

    Why not simply copy the xpath of the element?

  • @WEಕೆ
    @WEಕೆ 10 місяців тому

    I get attribute error: none type object has no attribute split

  • @truealpha718
    @truealpha718 Рік тому

    +1 subscriber____thanks a lot

  • @nikolinawillette9849
    @nikolinawillette9849 Рік тому

    I followed all the steps, but the browser still shut down 2 seconds later. What could be the problem?

  • @joshuaoliverantony138
    @joshuaoliverantony138 7 місяців тому

    ModuleNotFoundError: No module named 'webdriver_manager'

    • @browserautomate
      @browserautomate 7 місяців тому

      its missing lib 'webdriver_manager' so just run before pip install webdriver_manager

  • @aswathvanan3833
    @aswathvanan3833 2 роки тому

    make video on pupeteer

  • @philtoa334
    @philtoa334 2 роки тому

    Nice_very.Nice

  • @guilherme5094
    @guilherme5094 2 роки тому

    👍

  • @notoriousfly9260
    @notoriousfly9260 Рік тому

    13:00

  • @browserautomate
    @browserautomate Рік тому

    if anyone have issue with bot detection i can solve your issue

  • @timothyo718
    @timothyo718 2 роки тому +1

    Was German your first language? You don’t seem to have any accent whatsoever.

  • @chickenrage940
    @chickenrage940 10 місяців тому

    doesn't work anymore.

    • @browserautomate
      @browserautomate 10 місяців тому

      specify your problem?

    • @chickenrage940
      @chickenrage940 10 місяців тому

      @@browserautomate thanks, but i worked it out. it still works, but I didn't have chrome installed. after i installed chrome, it works again.

  • @ultraracer
    @ultraracer Рік тому

    damnn

  • @mohamedelhousany4960
    @mohamedelhousany4960 Рік тому

    share the script

  • @ultraracer
    @ultraracer Рік тому

    hi

  • @abulfazhasanov2100
    @abulfazhasanov2100 11 місяців тому

    Everything is ok. But why you talking like you have something in your mouth

  • @poornachanduchalla5651
    @poornachanduchalla5651 Рік тому

    I am getting this error "Message: unknown error: cannot find Chrome binary" Could u tell me what to for this @NeurallNine

  • @NationalistsRuinAmerica
    @NationalistsRuinAmerica Рік тому

    Nacho?

  • @browserautomate
    @browserautomate Рік тому

    if anyone have issue with bot detection i can solve your issue