Web automation in python for beginners

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025
  • НаукаНаука

Комментарии • 762

  • @bbf0ab08cb44becfec
    @bbf0ab08cb44becfec 4 года назад +510

    "If you take out the fun, it's not fun anymore" wise words indeed.

    • @xichenli2001
      @xichenli2001 4 года назад +7

      Indeed, "if you take out all the fun, whats gone leftover gonna be Notfun"

    • @whatnothin1401
      @whatnothin1401 4 года назад +1

      just wanted to state this ... i am amazed :D

    • @vaibhavtiwari6540
      @vaibhavtiwari6540 3 года назад +3

      Yes, "There is no fun, without fun."

    • @souravkumar5774
      @souravkumar5774 3 года назад +10

      Every 60 seconds in Africa, a minute passes.

    • @abhay6276
      @abhay6276 3 года назад

      It's same applicable for life...

  • @omkhard1833
    @omkhard1833 3 года назад +3

    Bieng a CCNA aspirant i am too happy to listen when Tino Sir says "I am not a programmer guy i grew up with switch routers and firewaalls" literally touch my heart.... keep up the great work sir

  • @kshirodpatel
    @kshirodpatel 5 лет назад +181

    We are fortunate that we are living in an era where teacher like Hitesh is teaching us. Sir your quality of teaching is awesome. Love from bhubaneswar, India.

  • @MurrayRide
    @MurrayRide 5 лет назад +10

    This is honestly the best most simple tutorial on this subject! I am going to be watching all of your Python tutorials, I am a statistician who has switched away from R to Python and your videos are the perfect introduction to self learn on any topic.
    Thank you so much for your time in making these!

  • @KamranKhan006
    @KamranKhan006 4 года назад +53

    Clicked this video randomly, bro you are doing a lovely job explaining everything in such a neat and tidy way. Thank you! more power to you!

  • @saty
    @saty 3 года назад +3

    That's great. Now I understand why we should not click random things , looking very tempting 🤣🤣🙂

  • @suryamadhav5208
    @suryamadhav5208 4 года назад +5

    Ur happiness and joy in programming is so contentious .

    • @cats-uk
      @cats-uk 3 года назад

      Do you mean “contagious”?

  • @silentxcure
    @silentxcure 2 года назад

    im so glad i found this. I do a lot of inputting in my current job, so i am trying to create a program where i can have all my work inputted automatically. This is a great first step. thanks so much.

  • @CamKnoppMusic
    @CamKnoppMusic 4 года назад +2

    Just finished 4 years of computer science in college and probably 99% of it was just boring stuff. I feel like they could inspire their students to be passionate about code if they taught cool things like what you're teaching, but instead they just make students do boring projects year after year. Great video!

  • @rohan1002
    @rohan1002 4 года назад +3

    You are the real face of professionalism.

  • @tocodelray
    @tocodelray 3 года назад

    I've been struggling to learn Python for exactly that reason - boring boring boring. Finally I learned that this is the way to go: pick a fun project and then learn what you need to accomplish it. Thanks for the great videos!

  • @sheelakaur6319
    @sheelakaur6319 3 года назад +4

    Thank you Hitesh, you just demo’d a complex subject in a fun and straight forward way. I look forward to your other videos!!

  • @lobsangbarriga5324
    @lobsangbarriga5324 2 года назад

    Brooo thank you very much for this, I wanted to automate some tasks for a long time and with this knowledge I finally managed to do it, have an amazing day!

  • @uscjake868
    @uscjake868 2 года назад

    I 1000% percent agree with you. If you cannot show students how you can do practical things with programming they get bored. Simple data in/out is not satisfying. Show them how to webscrape a site to check prices of their favorite shoes. That is a real application that is satisfying and can make you money!

  • @lynic-0091
    @lynic-0091 4 года назад

    Ho-ly shit I had no idea this was possible, I'm using Cypress in Gitlab CI, combined with a Python script which notifies our team if a test fails. But you're telling me I can ditch Cypress and code everything myself? You're effing right, this is what makes programming EPIC. Doesn't surprise me I was already subscribed to this channel. Thanks a lot!

  • @XoLucyna
    @XoLucyna 4 года назад +13

    Thanks You Sir. I'm A 13 Years old Programmer In Python. And your tutorials are the best. Not because the video is good, interesting, or Informative. Yes, Of course the video is Really Informative, Useful and everything but beacause you thought me what programming actually is.
    Thank You Very Much.😇😇😇🙂🙂

    • @sreedarshshaji5951
      @sreedarshshaji5951 4 года назад +7

      Respect.
      At your age, I was working around how to grow a snake on a nokia.

    • @the-iter8
      @the-iter8 4 года назад +1

      @@sreedarshshaji5951 Things have changed, at his age I was busy playing cricket

    • @ronak.wadhwani
      @ronak.wadhwani 3 года назад

      I am also 13 and I am also a programmer :)

  • @jdragon8184
    @jdragon8184 4 года назад +1

    finally a real video worth watching ,
    i enjoyed my ds course and now for reward i will do this , ps : all my friend are doing web dev and i didn't want that so selenium helped

  • @slashd
    @slashd 4 года назад +3

    Actually it's much easier to just install the Selenium IDE extension to your Chrome/Firefox browser, record what you are doing, then export it to Python code and work from there.
    The generated Python code:
    driver.find_element(By.NAME, "search_query").click()
    driver.find_element(By.NAME, "search_query").send_keys("selenium")
    driver.find_element(By.NAME, "search_query").send_keys(Keys.ENTER)

  • @larryg.6512
    @larryg.6512 4 года назад +5

    Great topic and video. Thank you very much. Really needed this as I want to know how to apply what I’m learning and have fun, including with automation, and not just be “dry” about it. Looking forward to learning more from you great job!

  • @abhasvohra4914
    @abhasvohra4914 4 года назад

    I m shocked that I haven't subscribed you yet..
    Killed the subscribe button already.. kudos brother.. keep doing whatever you are doing.. cheers!! ✌

  • @AidanCosseyDiaz
    @AidanCosseyDiaz 2 года назад

    This video is absolutely amazing and has really helped me alot. I haven't added a comment yet so I just want to say that this video has helped me so much and I would recommend it to anyone who wants to learn Web automation in python! Thank you so much!
    Edit: For firefox driver = webdriver.Firefox() works.

  • @manofspork1135
    @manofspork1135 4 года назад

    Hitesh! I've spent my time doing competitive programming, I just learned piles of useless theory and programmed just to analyze data. I lost all motivation to program and actually began to hate computer science. You have reignited my interest in programming again! I haven't felt this way in a very long time

  • @aryanshmahato
    @aryanshmahato 5 лет назад +48

    7:05
    Hitesh sir put Semi-colon at the end of the line...
    Black Panther: We don't do that here

  • @krishnabezawada
    @krishnabezawada 5 лет назад +21

    Good ... But I want to know
    how can I perform selenium automation on Current web browser (without opening another chrome Tab separately for selenium )
    Thanks in advance ...

    • @AsianSparrow
      @AsianSparrow 4 года назад

      ruclips.net/video/MPsL0_LWhGg/видео.html

  • @e10etcreature43
    @e10etcreature43 3 года назад

    Using xpath is my biggest take away thanks a lot , FUN always.

  • @ppandolff9038
    @ppandolff9038 4 года назад +1

    "If you take out the fun element, it's not fun anymore"
    That's some logic right there

  • @champi-metal
    @champi-metal 5 лет назад +6

    Cool man.
    Always keep programming fun. It gives joy when you use programming for personal stuff.

  • @sunilghimire6990
    @sunilghimire6990 5 лет назад +4

    I'm loving your video editing part these days

  • @arifshaik8405
    @arifshaik8405 Год назад

    Simple and clean explination, Great work

  • @kennywoo9012
    @kennywoo9012 4 года назад

    if u take the fun element out of it.. its not fun anymore.. what a genius

  • @harshitaggarwal4981
    @harshitaggarwal4981 4 года назад

    Your videos just removed my tension to make project for my final sem loved ur videos ....more power to you♥️😇

  • @rishirajbehera7183
    @rishirajbehera7183 3 года назад +3

    Note: As of 2021 for Mac users, use: brew install --cask chromedriver .... keep learning ..

  • @yuvraj6279
    @yuvraj6279 5 лет назад +11

    Yes we need more videos on automation using phython🤓

  • @arunjithm84
    @arunjithm84 3 года назад

    You are going to save me 5 hours of work eveyday 😄
    My tool development is in progress 😎👍
    Thanks much for the video 😊❤

  • @adeltahmid_
    @adeltahmid_ 4 года назад

    Hi sir.I am Adel Tahmid from Bangladesh and I am only 15. I am really inspired by your videos and I learned a lot from them

  • @bernardoclaro4499
    @bernardoclaro4499 2 года назад +2

    why the method "find_element_by_xpath" doesnt appear for me? i can only see the find_element one, can someone help?

    • @HeisenbergO5
      @HeisenbergO5 2 года назад

      Same problem occuring with me too. Have u found any solution yet?

  • @jayjain6204
    @jayjain6204 5 лет назад +3

    We really need teachers like you 👌

  • @Goodhealthall2015
    @Goodhealthall2015 4 года назад +7

    Yes, you reminded me the nostalgic days of making triangles, pyramid etc in c++

  • @kedard1001
    @kedard1001 5 лет назад +10

    The pleasure is watching your videos. You are always motivation for me to keep going joyfully in programming world. Thank you sooo much hitesh sir.

  • @kimkimathi2312
    @kimkimathi2312 4 года назад +1

    I hit the suscribe button you are the best my techie,,your lively

  • @MattLeitholt
    @MattLeitholt 3 года назад +1

    This video gave me the excitement to continue learning about Python. I am headed to my desktop now to play 😁

  • @iamhritikpawar
    @iamhritikpawar 4 года назад

    Thanks for that. I made a automatic wallpaper downloader. Since I manually change my wallpaper daily . Now it will do work for me.

  • @Rass90
    @Rass90 4 года назад

    U have ni idea how much this was helpful to me thx alot

  • @dhruvbhartia6655
    @dhruvbhartia6655 5 лет назад +29

    Awesome! This made me think that how interesting my life can actually be. Thanks a lot for this video 😊.

  • @akshaypendyala
    @akshaypendyala 5 лет назад +1

    Now this is what you call fun!
    I am gonna try it today!

  • @erdoganatas9656
    @erdoganatas9656 3 года назад

    In case you get an error such as webdriver must be added to the path ecc, in our current system which is windows 10, search view advanced system settings then click on Environment Variables, later click to the path and add the path that your webdriver is located, as an example if my files are to be in a file called WebDrivers on my desktop I am supposed to add this line " C:\Users\dro_m\Desktop\WebDrivers " , finally restart your computer so that your pc can recognize the path.

  • @mformobileapps
    @mformobileapps 3 года назад

    now i realize that decision to learn coding was the best one ❤❤❤

  • @patrykstarzyniak9593
    @patrykstarzyniak9593 4 года назад +3

    My favourite programming teacher on youtube!

  • @ABYZA
    @ABYZA 3 года назад +1

    this is rocket science.

  • @tulasisanjay
    @tulasisanjay Год назад +3

    the chrome is automatically closed why its happens?

  • @kurdmanpouyesh
    @kurdmanpouyesh 4 года назад +1

    Wooooooow. Man that was exactly what i needed. You got yourself a new subscriber. Viva amitab bachan!

  • @al7240
    @al7240 2 года назад

    Thank you for such a simplistic approach.

  • @gauravvishwakarma____3330
    @gauravvishwakarma____3330 5 лет назад +2

    Great RUclips channel for providing simple way of technology

  • @yosis1117
    @yosis1117 4 года назад

    loved the positive approach , problem is once you learn all that and want to find a job as an automation tester , the interview process will contain mostly programming problem solving questions using algos , these are super hard for me to master/practise(not fun at all). did anyone experience that while job hunting?

  • @surajkamble3548
    @surajkamble3548 5 лет назад +142

    No one :
    Literally no one :
    Hitesh sir : i finally wrote my name.
    🤣😂

    • @HiteshCodeLab
      @HiteshCodeLab  5 лет назад +14

      Hahaha, that’s a really long last name

    • @surajkamble3548
      @surajkamble3548 5 лет назад +4

      @@HiteshCodeLab 😅 well ,not that long for an indian sir.

    • @dappshow3094
      @dappshow3094 4 года назад

      never use sudo pip

    • @itsmmdoha
      @itsmmdoha 4 года назад

      I wish I had a haha reaction button 😂

  • @abhijeetgaikwad2748
    @abhijeetgaikwad2748 4 года назад +30

    Your English accent is so good 🔥

  • @testtest7957
    @testtest7957 4 года назад

    Please Hitesh sir. Make more videos on web automation with python because the way you teach us is very simple and understanding. Please make more videos. As I am a software tester and using Java but wanted to move with python automations. And your tutorial is what makes me excited to do it. Please sir it's my humble request.

  • @sanketmaske74
    @sanketmaske74 5 лет назад +8

    Video starts at x.xx( find x yourself)

  • @abdulmudhir4042
    @abdulmudhir4042 5 лет назад +1

    instead of finding the search button, you can call the submit method on the searchbox

    • @citygardener3854
      @citygardener3854 4 года назад

      I'd love to see how you did it! I am having an error with sending keys

  • @sagarnashikkar9408
    @sagarnashikkar9408 4 года назад

    Wow...!!!
    Thank you Hitesh sir...
    Leaning Python and loving it a lot...

  • @joydipdewanjee993
    @joydipdewanjee993 4 года назад +2

    looks like the secret ingredient to increasing millions of views for any video through a simple python program.

  • @cliffkwok
    @cliffkwok 5 лет назад +2

    I am waiting for this video long time. Can you make a full course on this, so I can automate my daily office job?

    • @aakashjana6225
      @aakashjana6225 5 лет назад

      You can definitely automate more things using robotic process automation like UI path

  • @georgeboustanis1690
    @georgeboustanis1690 3 года назад

    Wow man you made it crystal clear!!!!

  • @venkatakalki3892
    @venkatakalki3892 3 года назад +2

    Hi sir,
    I'm getting this problem " find_element_by_xpath is deprecated use instead find_by_element "
    please help me on this

  • @sheebastanley3553
    @sheebastanley3553 4 года назад +6

    hi,
    I keep getting the error element not interactable when I try to send keys, what is happening?? (my path is fine...)

    • @milo1269
      @milo1269 4 года назад

      Same here

    • @aco3696
      @aco3696 4 года назад

      @@milo1269 try driver.execute_script("arguments[0].click();", yourvariable)

    • @rssaiganesh
      @rssaiganesh 4 года назад +7

      solved it. Copy full xpath instead of the short one as he had done in the video

    • @Marvicxd98
      @Marvicxd98 4 года назад +3

      @@rssaiganesh thanks men, that works for me!

    • @aishwaryamurugappan5138
      @aishwaryamurugappan5138 4 года назад +1

      @@rssaiganesh Thanks dude!

  • @jackReme
    @jackReme 4 года назад +13

    Good Video but actually you need to copy "full xpath" instead of "xpath". :)

    • @Zydres_Impaler
      @Zydres_Impaler 4 года назад

      Thanks a lot bro, it works after using your tip

    • @rinshinjalal1952
      @rinshinjalal1952 4 года назад +1

      ya maan i wanna give you great gift thanks sssssss
      I spend about 2 days on this but nothing happend
      but your comment helped me alot

    • @ElijahIsMe
      @ElijahIsMe 4 года назад

      This should be pinned. I was so confused lol, thanks man

  • @m_abhijit_
    @m_abhijit_ 3 года назад +1

    Thanks for the tutorial 👍🏻

  • @JatinChhabra
    @JatinChhabra 3 года назад

    Its simple for a master like you, but its awesome for a guy like to who bring more productivity with such awesome code. That was an really interesting tutorial Hitesh. Thanks for sharing it.

  • @VikTheGreat360
    @VikTheGreat360 4 года назад

    That background wallpaper is SO COOL!!!

  • @rushikeshreddygangidi8985
    @rushikeshreddygangidi8985 5 лет назад +8

    Very Sharp and Clear as the title ❤️
    Why can't you make a series on web automation kind of stuff ?

  • @lincolnmunene554
    @lincolnmunene554 4 года назад

    neatest coding tutorial have seen

  • @aniketbhalla1521
    @aniketbhalla1521 5 лет назад +1

    Pls keep on posting such fun coding videos. I really enjoyed it a lot and executed what you have teached in this lesson.🥰🥰🥰

  • @aakashjana6225
    @aakashjana6225 5 лет назад

    You did this all not just through programming but with the help of Python and its superb packages. In Java this could have been quite cumbersome.😉

  • @kamlakarkadam9073
    @kamlakarkadam9073 4 года назад

    Very clean explanation easy to understand

  • @Ethanhunt8900
    @Ethanhunt8900 4 года назад

    Hi bro your videos are nice and ur way of looking the code is in the next level. Even I don't like the old same pattern of learning the code. keep doing this. Love from Coimbatore :)

  • @shreyanshnautiyal8674
    @shreyanshnautiyal8674 3 года назад

    Thanks sir you helped me you deserve much more subs

  • @bhagyashreeyede6784
    @bhagyashreeyede6784 4 года назад

    Yes sir. I want such kind of videos for Automation with python.

  • @dheebanm3207
    @dheebanm3207 4 года назад

    Your teacher way Awesome bro

  • @NeoxEntertainment
    @NeoxEntertainment 3 года назад +1

    Awesome video i never used phython before and i guess i need to install some things before i can code like you what do i need to install to start following this video ? :)

  • @awaraamin9670
    @awaraamin9670 4 года назад

    Well done Hitesh, please keep sharing your knowledge with us. I enjoyed it.

  • @prashant3162
    @prashant3162 3 года назад

    I already liked it seeing just the first 30 seconds...

  • @mujtabaahmad5188
    @mujtabaahmad5188 3 года назад

    To the point and quality content. Appreciated!

  • @Ebenenstil
    @Ebenenstil 2 года назад

    Very beautiful video. Thank you for the short and, above all, effective introduction to the topic of Web Automat

  • @nachtfuchs7711
    @nachtfuchs7711 4 года назад

    This is exactly what I was looking for. I got to learn that from scratch but it will be worth it

  • @pavankumar-nr4mv
    @pavankumar-nr4mv 3 года назад

    Yes this is interesting I thought selenium is for only testing but now I realised this is for automation also

  • @shauraysingh2563
    @shauraysingh2563 5 лет назад

    So it feels like Hitesh sir is actually a big fan of standing desks !

  • @robertotarga
    @robertotarga 5 лет назад +4

    Hi Hitesh,
    Thank you for your interesting video about automation with python. Which code editor are you using?

    • @catloafl
      @catloafl 4 года назад

      He is using VS Code with some extensions, and he is running his project through terminal.

  • @verinen_runkkari5652
    @verinen_runkkari5652 4 года назад +1

    Very clear and informative video, keep it up! Definitely going to learn more about selenium :D

  • @pavankumar.g2127
    @pavankumar.g2127 4 года назад +2

    I used the same code and I am getting exception like " selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable ", I also tried to google it for resolving but I didn't get. Then how to resolve it?

    • @ryklu7278
      @ryklu7278 4 года назад

      Same problem -> Copy full XPath instead of Copy XPath e.g. "/html/body/ytd-app/div/div/ytd-masthead/div[3]/div[2]/ytd-searchbox/form/div/div[1]/input " and "/html/body/ytd-app/div/div/ytd-masthead/div[3]/div[2]/ytd-searchbox/form/button/yt-icon" works fine for me...

  • @MohsinKhan-sq6dq
    @MohsinKhan-sq6dq 3 года назад

    That's a great tutorial for a beginner. I'm going to make something really useful after learning this. Thanks a lot!!!

  • @impulsemotivation7893
    @impulsemotivation7893 3 года назад +1

    That is so cool!!!

  • @muhammadshahnawaz3679
    @muhammadshahnawaz3679 4 года назад

    You are doing a gr8 job. keep it up

  • @shreechatane9215
    @shreechatane9215 4 года назад

    Sir you have very positive vibes😁👌

  • @marcinzale
    @marcinzale 3 года назад

    Very funny and simple. Good explained. Thank you!

  • @spencersedano
    @spencersedano 3 года назад

    What a fun video to watch! Thank you!

  • @ganeshunnam550
    @ganeshunnam550 4 года назад +5

    Man you make programming a lot fun 😃 I love the way you teach 💙

  • @ik2254
    @ik2254 4 года назад

    I've got one question tho:
    How to open multiple tabs in one chrome window with this script? For example, I have different social media accounts, and I wanna automatically login in all of them, by writing one script. But if I do it like in this video, it's going to open multiple chrome windows, instead of just simply adding a new tab, isn't it? Am I wrong, and if I'm right how to actually do that?
    Nice tutorial btw

  • @wagalprasad1869
    @wagalprasad1869 3 года назад

    Best video ever ,could you please mention the environment setup from the beginning run the code from selenium with chrome ,if you express some from whole complete with selenium-python and java would be great!!

  • @xx_Ashura_xx
    @xx_Ashura_xx 4 года назад +1

    What theme are you using? it looks so good

  • @aaronbaldwin2845
    @aaronbaldwin2845 4 года назад

    I like this guy. Thanks, Hitesh