Web automation in python for beginners
Vložit
- čas přidán 27. 01. 2020
- Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdotcom
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit... - Věda a technologie
"If you take out the fun, it's not fun anymore" wise words indeed.
Indeed, "if you take out all the fun, whats gone leftover gonna be Notfun"
just wanted to state this ... i am amazed :D
Yes, "There is no fun, without fun."
Every 60 seconds in Africa, a minute passes.
It's same applicable for life...
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!
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
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!
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.
Bro i am frm khordha
couldn't agree more, i've just subscribed!
Bro from Cuttack
@@kakashisenpai99 do u know python?
Bro from Nayagarh
Thank you Hitesh, you just demo’d a complex subject in a fun and straight forward way. I look forward to your other videos!!
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!
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!
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.
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
Cool man.
Always keep programming fun. It gives joy when you use programming for personal stuff.
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!
That's great. Now I understand why we should not click random things , looking very tempting 🤣🤣🙂
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!
sir i have some doubts ,i had watched your python web automation video,i tried to automate google meet,everything is working well except when i join the meet with the join id,i switch to the child node correctly and interacted with evry element,algood,except the alert box on the chld window can not be closed,it says no such alert,the alert requests for cam mic permission whcih in want to dismiss,Stuck for two days? used wait methods too still no luck?any suggestion?
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.
Hello Hitesh. Thanks for all your videos. I have a question for you. How would I use Selenium to bring up a hyperlink that is in an excel box, click a box, enter a date in another box, then go back to excel and do the same thing but with the next hyperlink listed ?
Great CZcams channel for providing simple way of technology
Can you please tell me the editor which you are using and how you are getting that auto suggestions for find_element_by_xpath. Because I'm using vscode and I'm not getting any suggestions
Hello,
My works involves a lot of browser report fill regarding CZcams Copyright Strikes. The problem is that Selenium opens a new browser everytime, and I can not bypass the CAPTCHA window or the login window. I wonder if it's possible to control a browser already opened?
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!
great tutorial!! i like the energy with which you teach
btw, is there a way to make the whole process start within an existing open browser? maybe in a new tab, or even on the same tab?
How can I use/rotate proxies from a .txt file everytime a new webdriver opens up? Can you help me pls. thanks!
Help : Thanks Sir for your videos , do you know if there is a way to capture the screenshots in selenium along with the url ? When am capturing the screenshot the url is not included.. please help.
Hi, thanks for this amazing automation video! I have a question, I'm learning python now and trying to learn automation with my work. so a project im thinking to try to automate is copy paste leads from a web app called zoom info that i use, and pase to a specific excel sheet i use. usually I copy paste 200-400 data a day. can this process be automated in python script also using selenium or maybe pyautogui? would appreciate your advice and help with this, thanks in advance!
Is there a way i can use the automation on my main chrome browser?
Yo i got a doubt whenever my automated browser opens it automatically closes, a temporary solution that i found was to use the “time” module and make it sleep for x seconds. Any suggestions on my problem?
I'm probably just very stupid, but can somebody help me anyways? After opening my terminal on Windows 10 and typing in "pip install selenium", I got a synthax error pointing to "install":
File "", line 1
pip install selenium
^
SyntaxError: invalid syntax
Do I need to download a file for Selenium manually first? Or do I use the terminal wrongly? Still a beginner, so help would be really appreciated... :D
Thanks for that. I made a automatic wallpaper downloader. Since I manually change my wallpaper daily . Now it will do work for me.
i keep getting element not interactable for the xpath of searchbutton I've tried copying and pasting both xpaths the icon and the button just to make sure and for both of them i get the error message
I am getting a problem. I am using edge driver. So, when i did all that code it only started the browser and not actually opened the website (youtube). How do i solve this?
Hi sir, i've been trying to do that with opening spotify, but suddenly the chrome got force closed, do you know how to handle it? thank you
I m shocked that I haven't subscribed you yet..
Killed the subscribe button already.. kudos brother.. keep doing whatever you are doing.. cheers!! ✌
Ur happiness and joy in programming is so contentious .
Do you mean “contagious”?
question. so have this working perfectly in Pycharm but can't get it to run in Cmd or as a .py file until I open it in Pycharm. any help on fixing this I want to pass to friends for automation.
i cant get it to find the searchbox when i run it in the terminal, i have exactly what he has on screen copied but still wont find the search box any ideas?
We really need teachers like you 👌
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.
Would you recommend python + selenium over javascript + puppeteer? It's my understanding that you get more control with the later.
how to run the automation command in browser that we are using now, not open the new browser ?
Your videos just removed my tension to make project for my final sem loved ur videos ....more power to you♥️😇
what about if iam learning python by using an online python editor and debugger and not installing python on my windows pc ?? can i do atomation from programs i will write on the riple online editor ??
What is the difference between finding by XPath vs find by css selector? Which one is better to use?
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
Thanks for help. Any advice when the Forms elements are not showing up under Inspect? .. like on TypeForm
I was planning to scrap data from a website but the issue with it was the URL when copied and pasted separately lead me to a different page altogether. I beleive using selenium should solve this however, are you aware of a scenario where web automation through selenium won't work?
Apart from this singe page code , do u have any project which will help learn how to handel bulky projects files and interaction between them.
Hi sir,
I'm getting this problem " find_element_by_xpath is deprecated use instead find_by_element "
please help me on this
Is there any way to convert this .py file into an exe file? I’ve heard about pyinstaller.
That background wallpaper is SO COOL!!!
how do we add employee details(photo, role, LinkedIn profile link) from google sheet to wordpress? it should be update something like how companies team pages look. please reply me . I tried searching in google but i didn't get it.
what does the driver.find_element_by_x_path return.....and can a method return an object.
Hi hitesh.. can you explain why we have a message in chrome 'chrome controlled by automation ' how can we remove it. Does it means youtube will allow scraping for the particular ip address
How can i avoid the pop up coming in browser when running the program?
This is exactly what I was looking for. I got to learn that from scratch but it will be worth it
what is the text editor you are using sir? may i use it for win 10?
Now this is what you call fun!
I am gonna try it today!
You are the real face of professionalism.
How to get a link that which is frequently change and it's is
Inside inner HTML body and in Iframe
Help me PLZZ
Very clear and informative video, keep it up! Definitely going to learn more about selenium :D
Im a real beginner, I downloaded Anaconda to write my scripts but I have no code assistant for completion like you do. Which idle would you recommend to have this feature?
How can I submit a textarea if there is no button. In order to submit you press enter not click a button.... I can't find it anywhere
Using xpath is my biggest take away thanks a lot , FUN always.
How does it work when the page is up but the element isn't rendered right away?
Watching and loving your contents since very starting of this channel
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!
Hi. I want ask how to select element in selenium if the class name of element has been hashed ? Like in instagram and other
Printing "*" patterns with while loop I'm stuck I understood the simple concept but can't make complex shape out of it..
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
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?
Hello is it possible to switch between multiple chrome windows bro ?
What theme are you using in vs code
hi hithesh sir
I wanted to no which is best language for building andriod apps
How can I setup intellisense for Selenium Webdriver on VS Code like this video?
"If you take out the fun element, it's not fun anymore"
That's some logic right there
If i run the skript everything works, until yt wants me to logg in. How can I work around this?
Awesome! This made me think that how interesting my life can actually be. Thanks a lot for this video 😊.
Sir, what code editor did you used in this video?
How to avoid pop ups chrome as it would completely stop selenium from moving on to do the next action?
which framework did you use for writing automation.py ?
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.😉
Hello Mr. Hitesh,
I am new to selenium, tried to automate whatsapp message, the xpath value changes every time when fresh browser opens up. Can you please help in how to fix it.
I am trying to create a web browser using your video. It worked good, I can connect to my Disney+ account but the issue comes when I try to play a video.
It's seems that Dineyplus blocked access if it doesn't recognise the browser ?
Or a library PIP is missing ?
Could you help please ?
hi not working for me im getting
line7 searchbox.send_keys, line 477 in send_keys self._execute(command, params), line 633 return self._parent.execute( comman, params) and more
able to pull up the web site but that is it
This video gave me the excitement to continue learning about Python. I am headed to my desktop now to play 😁
How do you set up a keyboard enter ?
Well done Hitesh, please keep sharing your knowledge with us. I enjoyed it.
sir how come you don't put path of exec chrome driver? plz tell
Hi Hitesh,
Can we execute such Python files in Background, like without seeing the browser if we have to fill some web forms?
please guide if possible.
Thanks! :)
That's a great tutorial for a beginner. I'm going to make something really useful after learning this. Thanks a lot!!!
Hi Hitesh,
Can you please tell If I run this on google collab it is giving error. Can you tell me how to run this in google collab.
Hi, every week I get a audio web link to add to my church's website. Is it possible to automate this process using selenium/python?
So it feels like Hitesh sir is actually a big fan of standing desks !
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.
Very beautiful video. Thank you for the short and, above all, effective introduction to the topic of Web Automat
Pls keep on posting such fun coding videos. I really enjoyed it a lot and executed what you have teached in this lesson.🥰🥰🥰
How to continue code if the given element not found, bcoz its throwing error as of now
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 :)
I tried the same ,but send_keys() dosent work for me. Ive tried click,clear and then send but it still doesn't work. Any suggestions?
which python editor do you use