Part 1: Selenium with Python | Hybrid Framework Design from scratch | PyTest, POM & HTML Reports

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

КОМЕНТАРІ • 316

  • @Bipulku2005
    @Bipulku2005 2 роки тому +31

    No words can describe your effort. You are doing a great job for community. Thanks a lots for everything. You have been reason for bread and butter for many.

  • @5123karan
    @5123karan 3 роки тому +8

    I am an experienced professional with Pytest, Python, Jenkins and GIT but still I found this video really useful to recall the things I did years back.

    • @pramodc4946
      @pramodc4946 3 роки тому +1

      Can you tell why self.driver has no suggestions in pageObjects class ? I am too facing this issue ..Is it due to conftest file ?

  • @j.rohinihrmm6782
    @j.rohinihrmm6782 10 місяців тому +3

    I like for helping lot of students who want to learn but no financial assistance,that's why..thank u sooo much

  • @vijaych5771
    @vijaych5771 3 роки тому +22

    Hello Sir,
    I am very big fan of you, u r so genious and you are helping lot of people. Ur secessions are far better than paid cources. I am sure that you don't know how you are giving life to many students and experienced persons .. Thanks a ton behalf of all the guys who benefited from your lectures.. My dream is to meet you in this life.. God bless you with wealth, health ..

    • @KK7155.
      @KK7155. 3 роки тому +1

      Very true👍

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

      your videos are better than paid courses some institute use your videos to teach automation just copy paste your videos

  • @lananhphamthi5593
    @lananhphamthi5593 4 роки тому +2

    I'm from Holland. I bought a self paced video Selenium with Python. It's a great course. Thank you.

    • @sdetpavan
      @sdetpavan  4 роки тому +1

      Thank you for the feedback.

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

    I have never seen a tutorial which is explained in this detail.
    So glad I finally found a channel like this.
    Thanks a lot sir

  • @chaitrashekar1623
    @chaitrashekar1623 3 роки тому +1

    I have never seen a tutorial which is explained in this detail.
    So glad I finally found a channel like this.
    Thank you.

  • @sathya-enjoy_lifetothefullest
    @sathya-enjoy_lifetothefullest 4 роки тому +15

    I am running short of words to praise you pavan sir for this video which definitely boost our confidence in python automation and motivate us to strive to achieve excellence. Hope you will integrate with GIT and also create Jenkin job, jenkin pipeline too

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

    Using your session I was executed first class through my own thank you so much sir it is a awsome explanation thanks again sir

  • @diyaneshm8928
    @diyaneshm8928 3 роки тому +1

    Hi sir, I searched so many tutorial videos but couldn't find it correct one . But this is something special and most appropriate to selenium with python . Its perfectly explained in layman terms and very useful for my carrier growth as well. I would strongly recommended this video for the beginners who are changing their path from manual to automation QA. Thanks a lot sir

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

    how should I give excellent compliments ? The more I say the more you deserve.. You deserve a big salute respect.. Really.. Thank you so much Sir.. I can't express my happiness.. Live a long..🙏 Really you're a great teacher.. No one can replace your teaching style and methods.. This POM session is awesome..😊

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

    Thank you sir , I don't have words for how helpful your videos have been for me .

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

    This sir is real gem. Hope he shares the code he's writing in the video tutorials.

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

    Amazing insights on automation framework development. Especially great help for beginners to understand how automation works. Thank you for this video.

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

    Sir,
    So far the best vid in a tutorial to kick off Selenium Python automation...Amazing..Keep bringing more videos on Python Selenium !!!

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

    Thank you so much for this video!
    I've have never could imagine how a test framework works or look like, but it helped me a lot. I am really grateful.

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

      Ye video 2 years old h ..abhi bhi same hi concept h?

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

      @@jayeshagrawal9084 It's hard to understand that what you say. :D But here is an answer: It's 2 years old yes, there are some differences (in functions), but it's totally good.

  • @pythonlearning5818
    @pythonlearning5818 4 роки тому +1

    On a serious note , this is the perfectly explained frame work from scratch in python .. Thanks Mr Pavan

  • @j.rohinihrmm6782
    @j.rohinihrmm6782 10 місяців тому

    sir,got bless you with hundred years of life

  • @ibrahimmohammed7703
    @ibrahimmohammed7703 3 роки тому +1

    Hi ,
    You have not specified/mentioned chromedriver path in the while creating webdriver object, but still how come test is executing??

  • @AKPK2016
    @AKPK2016 2 місяці тому

    Hi sir, your session are really detailes one. I am trying those and found that in testcase assert code is not working, do we have updated lectures or video for this?

  • @VijayAnandhan-f2r
    @VijayAnandhan-f2r 9 місяців тому

    Hi Sir
    I am currently transitioning from manual to automation testing and am deciding between the combination of Selenium with Java or Python, Which combination would you recommend me for future

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

    Really worth watching your videos👏

  • @udhaiable
    @udhaiable 5 місяців тому

    I am big fan of the way you teaching, Can you please share the document file which was mentioned all the steps in this video.

  • @dohuong6507
    @dohuong6507 3 роки тому

    Hi sir, I do not find your tutorial about selenium with Java. I don't know what language should I follow ? Python or Java ? Can you give me your advice. Thanks.

  • @AllOkayz
    @AllOkayz 5 місяців тому

    Hello sir, I am getting webdriver exception when i am execution line= self.driver.get(self.baseurl)
    Can you please help me, i am stuck

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

    @pavan sir. Do u have some EXCLUSIVE videos only on pytest & allure. Udemy or some paid channel ?

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

    Really appreciate the time and effort you put into making these KT videos. Thank you sir!

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

    Hi Sir, I am tried to run second case 'test_login' in framework then it's not accept the 'self.lp = LoginPage(self.driver)' shows 'Unexpected argument' in IDE once run the script shows 'E TypeError: LoginPage() takes no arguments' even i already imported "From pageObjects.LoginPage import LoginPage" class in Test_001_Login.Plz guide me.

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

    Hello, I've seen frameworks were testers assert stuff in PageObjects, and some in tests themselves. What's the advantage of your method?

  • @tunghuynh8504
    @tunghuynh8504 3 роки тому +1

    Wish I would know this tutorial sooner, you are the best SIR.

  • @mahendramungase1245
    @mahendramungase1245 3 роки тому +1

    Hi Sir,
    I downloaded Project from GIT and In my own project try to replicate your code.
    In log generation process - no exception in code but log is not generated at given path(Project path). Also I changed the path but it did not workout. I am using Python 3.9.
    Please advice.
    Thanks,
    Mahendra

  • @SankalpSaxena-n5k
    @SankalpSaxena-n5k 12 днів тому

    Sir how to debug when test file and pageobject is in different folder i always attribute error when i debug in pycharm

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

    Hello Sir,
    I was created Freamworks as your guidelines, but I am not able to call the functions in side the class, while running the scripts output sholud be display like "collected 0 items ", I am not getting where I missed the code. can please help me on it.
    Thank you.

  • @georgeberes7981
    @georgeberes7981 3 роки тому

    but if you have imported that webdriver module, why do you need to import it again in that test case file? Is the a must or otherwise that will not work?

  • @larosytruong7125
    @larosytruong7125 4 роки тому +2

    Thanks for your video. I'm concerned about how the row of 13 "act_title=self.drvier.title" has type "driver" by "drvier" and class "Login" has no init method but it's still executed successfully.
    And i did the same code following your video but I got "collected 0 items" and the browser Chrome is not launched. So, what did I miss?

    • @kirans2136
      @kirans2136 4 роки тому

      Even I'm facing the same Issue

    • @parthgarg5892
      @parthgarg5892 4 роки тому

      you may check you test_login.py file. in this the class you have created is not containing "test" keyword.
      i think that might helps you

    • @manusimplylive8090
      @manusimplylive8090 3 роки тому

      Make sure class name start with "Test" (capital T) and function name start with test.

  • @georgeberes7981
    @georgeberes7981 3 роки тому +1

    The appropriate method does not capture the screenshot for me at all, could you advise please?

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

      same here, have you solved the issue?

  • @antonyrajarathinam9976
    @antonyrajarathinam9976 4 роки тому +1

    Good job, so patience and clear explanation. Keep it up and best wishes for your future projects !!

  • @riyazuddinmohammed4744
    @riyazuddinmohammed4744 3 роки тому

    I am not able to get the Chropath for "LOG IN" button. It is showing empty. Could you please help me on this

  • @pramodc4946
    @pramodc4946 3 роки тому

    Thanks for video. It's very informative. One question, why didn't self.driver not giving any suggestions in pageObjects class? You avoided it by manually typing entire Webdriver method

  • @fahadkhan-islamicspiritual7872

    Can we use intellij for this using both python and selenium

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

    do you need parallel and excel etc first day of the job even if you don't have a single test? when do you need to start parallel test? how many tests do you need to have before you start thinking of parallel testing?

  • @satyaramjidhulipudi9383
    @satyaramjidhulipudi9383 3 роки тому

    Sir selenium with python or java which is better job opportunities present time

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

    Hi sir, thanks for your course in selenium hybrid framework with python
    but I have question about executable path chromedriver in this? I have problems error in chrome driver needs executable path, but in this tutorial video didn't include path just script "driver=webdriver.Chrome()". How to solve this problem sir? Chrome has success to install? or to input executable path chromedriver ?
    thanks

  • @ParveenKumar-ok8we
    @ParveenKumar-ok8we 17 днів тому

    Hi Sir,
    When I run my test001 : I am not able to validate login page. After submitting loging details URL moves to security check (a check box to click)
    Please help in such case what to do?

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

    Hello sir, May I have the "Selenium_Python Hybrid Framework with POM.docx" file please.

  • @Deepak.Explores-y4c
    @Deepak.Explores-y4c 9 місяців тому

    I am really thankful to you
    I can't express it in a few words.
    I would like to request you
    Please could you make Mobile Automation (Appium) with python
    Thank you sir❤
    New year special 🎉❤
    Happy New year 2024 🎉❤

  • @j.rohinihrmm6782
    @j.rohinihrmm6782 10 місяців тому

    firsttime in UA-cam I can say i like you sooo much...

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

    you are the GEMS

  • @prashantkhande7134
    @prashantkhande7134 4 роки тому +5

    Will you continue this tutorial?
    For end to end Automation testing using selenium with python github and Jenkins and jira

    • @sdetpavan
      @sdetpavan  4 роки тому +11

      Yes

    •  4 роки тому

      @@sdetpavan Thanks a lot. I am going to learning all your videos in this series.

  • @amarnathreddysurapureddy9111
    @amarnathreddysurapureddy9111 3 роки тому

    Background sound coming sir
    Super for ur effort on testing

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

    I would like to know whether you are providing any automation course in udemy,?? please suggest.

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

    I tired to execute same code in my laptop but getting below error " Type Error: 'str' object is not callable". please help me how to resolve this issue

  • @georgeberes7981
    @georgeberes7981 3 роки тому

    Hello sir, when I use that fixture in my test cases to avoid duplication of the webdriver, both modules pytest and webdriver are getting disabled in my console I can see that is not recognising that driver config fixture, could you advise please! Thank you!

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

    selenium with java or python which is better

  • @sijojohn6488
    @sijojohn6488 4 роки тому

    Hello Pawan sir. Can we run the code using the GUI rather than the command line? If running from the command line then it is difficult to debug. Please let me know if this is possible or not. Thanks.

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

    commandline execution from terminal is restricted if i want to execute pytest command. what should i do to run pytest

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

    If there is a logout button or navigate link, it is common in all the pages. On which page we locate this web Element?

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

    In the LoginPage.py file how to write find element by id after selenium update,
    self.driver.find_element_by_id(self.textbox_username_id).send_keys(username) gets error , How to write this is a new format

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

    Do I have to start python first , as I have worked on Java selenium , or can i directly start with this project videos, anyone suggest me please

  • @kirans2136
    @kirans2136 4 роки тому

    Hello Sir,
    I have followed the way u have done, but also i'm not able to take the Screen shot of the failed case in that particular folder.
    Could you please help me to solve this solution.

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

    where you have set the chromedrive path in this. i am still confused. Kindly assist

  • @shashibhushanv6301
    @shashibhushanv6301 3 роки тому +1

    Your efforts are getting paid in the form of increasing subscribers Pavan in the last 2 months from 90 K's to 1 L. Good going

    • @sdetpavan
      @sdetpavan  3 роки тому

      Thanks for your your support.

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

    your Udemy videos have been incredibly helpful! Any chance you could update them soon? It would be greatly appreciated and super beneficial for us learners. Thanks for all you do!"

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

    Thanks for this series! I have a doubt, in the above video, how Chrome Browser is launching automatically without adding chromedriver exe file and also the executable path in webdrier.Chrome() method?

    • @dvsshashank8074
      @dvsshashank8074 3 роки тому

      Hey Amith I have a dout can you explain??

    • @nareshk6444
      @nareshk6444 3 роки тому

      How did you launch Amit..?

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

      Provide your chrome path in root folder

  • @rishavraj6087
    @rishavraj6087 3 роки тому

    Sir Will this Project work if we share this project to another system? Do we have something like maven here in selenium python which automatically pulls all dependencies?

  • @AnilRathod-zh3iu
    @AnilRathod-zh3iu 2 роки тому +1

    Very informative, thankyou sir

  • @nahielahmed
    @nahielahmed 4 роки тому +1

    Hi pavan sir,
    Wanted to know the java course in your playlist is it complete training..

  • @georgeberes7981
    @georgeberes7981 3 роки тому

    Sir what type of file is that "conftest" file, mine is not recognising that at all and my tests are not running.

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

    hi sir, When i try to launch webdriver, getting error "TypeError", please provide your input. (Python 3.11)

  • @Rameshkumar-tn3wp
    @Rameshkumar-tn3wp 3 роки тому

    Hello sir, one doubt- how the directory are created under the specific package automatically
    ,Example- IF we create Screenshot directory its automatically created under pageObject Package, How? why its not created under different package?

  • @SuperMechtronics
    @SuperMechtronics 4 роки тому +2

    In this file why did not we enter the executable path in the chrome driver? please reply

    • @jayshreekant
      @jayshreekant 4 роки тому

      I have same question. where is cromedriver.exe??

    • @SuperMechtronics
      @SuperMechtronics 4 роки тому

      @@jayshreekant Looks like he is running a different chrome version from our existing one, I am not sure about it

    • @jayshreekant
      @jayshreekant 4 роки тому

      @@SuperMechtronics nahi bhai..He has shared the wrong code as well, i am getting unbound exception. Code is not working as expected

    • @shashibhushanv6301
      @shashibhushanv6301 3 роки тому

      @@jayshreekant Try this ...
      @pytest.fixture()
      def init_driver():
      driver = webdriver.Chrome(ChromeDriverManager().install())
      return driver

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

    I keep getting assert false for second test case, why is that?
    if act_title == "Dashboard / nopCommerce administration":
    assert True
    self.driver.close()
    else:
    self.driver.save_screenshot(".\\Screenshots\\" +"test_login.png")
    self.driver.close()
    > assert False
    E assert False

  • @tallurivamsi6413
    @tallurivamsi6413 3 роки тому

    Hi sir,Thanks for great video.I try to run testcase in my mac,but its giving "Process finished with exit code 0" and also through the command "pytest -v -s "path of testcase",its giving error.could you please help me out

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

    Thank you so much this tutorial.Its really helpful.

  • @nareshk6444
    @nareshk6444 3 роки тому

    I'm unable to launch chrome driver where did you configure sir. in which folder you kept the drivers please suggest

    • @NIANIK-gh7xz
      @NIANIK-gh7xz 3 роки тому

      please save chrome driver in any drive then go to the drive and copy the xpath or location link from drive search folder then paste it where required

  • @RameshKumar-sz6pv
    @RameshKumar-sz6pv 2 роки тому

    Hi Sir,
    I am big fan of the way you teaching, one request if possible could you please make video on *Penetration testing* also..

  • @ritikasriwastav7552
    @ritikasriwastav7552 3 роки тому

    Hello Sir, I did the same steps as you did but am getting this error:
    ImportError: Error importing plugin "Reports": No module named '_pytest.Reports'

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

    Thank you so much. Respect and Best Wishes.

  • @ashayzemse7094
    @ashayzemse7094 4 роки тому +1

    Sir, I did exactly everything you shown in this video but I'm getting an error like this:
    selenium.common.exceptions.SessionNotCreatedException
    And one more thing I wanted to ask you was Why did you not download "chromedriver.exe" and specified its path in confest.py ?

    • @ashayzemse7094
      @ashayzemse7094 4 роки тому

      ok just got to know that my Chrome wasn't updated because webdriver supported Chrome 85
      now it works

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

      do you have a solution for that

  • @sathisha4456
    @sathisha4456 3 роки тому

    Hi, I have tried this same hybrid framework python automation code format. It is working fine. But I could not get the screenshots using your format (self.driver.save_screenshot(".\\Screenshots\\"+""test_homePage.png")). as soon as the code is passed.
    How to get the screenshots.
    I have used the python 3.9 version.

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

      Please try: self.driver.save_screenshot('./Screenshots/failed_image.png')

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

    very nice the mat the bast on the world

  • @kesavab5970
    @kesavab5970 4 роки тому +1

    Thank you for the wonderful video with detailed explanation from scratch

  • @praveentwenty
    @praveentwenty 3 роки тому

    TypeError: get() missing 1 required positional argu
    ment: 'url'
    I AM GETTING THIS ERROR NOT SURE Y ANY HELP PLZ

  • @pratikvaishya217
    @pratikvaishya217 3 роки тому

    Hello Sir,
    I am novice coder and wants to know can we built same type folder structure in Visual studio code for Selenium with Python? If so, please guide in it.

  • @suryasgit
    @suryasgit 4 роки тому +2

    @SDET - QA Automation Techie I worked on couple Python based POM, I always face challenge in getting auto-suggestions when put self.driver (in your video also) I don't get any hint after putting dot like self.driver. ? How to overcome with this? If someone would want to do more with self.driver it is very hard. Please suggest.

    • @praneshda8448
      @praneshda8448 4 роки тому

      webdriver is not assigned to driver variable. better to assign webriver in def setusername funtion then later on modify acc to needs

    • @shashibhushanv6301
      @shashibhushanv6301 3 роки тому

      @@praneshda8448 Can you please share a sample code

  • @user-gs7vt7fd5w
    @user-gs7vt7fd5w 4 роки тому +2

    Nice work, i hope will be the video about setting up jenkins for selenium with python)

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

    Hi Sir, Thank You so much. When I am try to run a test from command line "pytest -v -s test_Cases/test_login.py" I am getting following error. ImportError while importing test module. Hint: make sure your test modules/packages have valid Python names. Could you please help.

  • @rameezkhan-kg2gi
    @rameezkhan-kg2gi Рік тому +1

    very informative sir,

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

    Hello Sir,
    It is very useful for beginners.

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

    Hi sir, i learn python pom and can not understand firstly my selenium with Java now python with selenium..how to learned in pom with error page code

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

      Please reply how to automate error page after homepage??

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

    Is it not require to mention chrome driver .exe path to launch the browser.?

  • @namratabedare
    @namratabedare 3 роки тому +1

    I liked this video very much, very informative, can you please guide what settings need to do when we open Pycharm as run an administrator in an organizational setup when Edge browser is managed by an organization?

  • @cutiepiec2829
    @cutiepiec2829 4 роки тому +1

    Hello Sir, Thank you for the series.. One doubt.. i have completed selenium with python , then now learning robot framework by your videos.. You have also posted on Selenium with Python BDD series.. Also now this series.. what is the right order to learn. Thank you so much , i learnt a lot by watching your videos ..

    • @praneshda8448
      @praneshda8448 4 роки тому

      robot and bdd are easy. finish and then come to hybrid

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

      bro please help me ,me currently doing selenium projects

  • @paripatel6006
    @paripatel6006 3 роки тому

    Directory icon doesn't have a dot in icon ...and in this video ...the directory icon has dot ...may be because of this ..i am unable to save the screenshot file in that directory ....

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

    why is your logout element in the login page class??

  • @bhavyasingh.k9544
    @bhavyasingh.k9544 3 роки тому

    Very good tutorial sir

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

    Can I get the word doc to for reference purpose ..?

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

    Thank you for this.

  • @SN0476
    @SN0476 4 роки тому +1

    You made my day. Really great hats off to you.

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

    Thanks for the help