Selenium Python Small Sample Project | Page Object Model POM

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ธ.ค. 2024

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

  • @RaghavPal
    @RaghavPal  6 ปีที่แล้ว +13

    Online courses - automationstepbystep.com/

    • @prasadsardesai
      @prasadsardesai 6 ปีที่แล้ว

      I tried this code in eclipse , didn't work--->
      '''
      Created on 07-Jan-2019
      @author: Prasad
      '''
      from selenium import webdriver
      import unittest
      class Logintest(unittest.TestCase):

      @classmethod
      def setup (cls):
      cls.driver = webdriver.Chrome(executable_path="C:/GoogleChromeDriver/chromedriver.exe")
      cls.driver.implicitly_wait(10)
      cls.driver.maximize_window()

      def test_login_valid(self):
      #self.driver = webdriver.Chrome(executable_path="C:/GoogleChromeDriver/chromedriver.exe")
      self.driver.get("phptravels.org/clientarea.php")
      self.user_name=self.driver.find_element_by_name("username")
      self.user_name.send_keys("Dont want to share here")
      self.password=self.driver.find_element_by_name("password")
      self.password.send_keys("Dont want to share here")
      self.password=self.driver.find_element_by_name("password")
      self.driver.find_element_by_id("login").click()

      @classmethod
      def tear_down(cls):
      cls.driver.close()
      cls.driver.quit()
      print("Test completed..")

      # def login (self,username,password):


      ----------> Getting below error :
      FFinding files... done.
      Importing test modules ... done.
      ======================================================================
      ERROR: test_login_valid (Login.Logintest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "D:/SeleniumProject/Python_Selenium/CRM_Application/com_actionables\Login.py", line 21, in test_login_valid
      self.driver.get("phptravels.org/clientarea.php")
      AttributeError: 'Logintest' object has no attribute 'driver'
      ----------------------------------------------------------------------
      Ran 1 test in 0.004s
      FAILED (errors=1)

    • @prasadsardesai
      @prasadsardesai 6 ปีที่แล้ว

      but still I am enjoying it

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Prasad, looks like you missed some step. Request you to refer the video again carefully

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

      where are the notes ?

    • @ravindersanjay
      @ravindersanjay 4 ปีที่แล้ว

      @@prasadsardesai Facing the same issue "AttributeError: type object "LoginTest' has no attribute 'driver'". have you got the solution for this ?

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

    For someone new to Selenium (but not Python) this is the only video I have found that *clearly* explains POM in a easy to understand manner, from initial script, to adding test cases to formatting for POM. Well done, and thank you!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Josh.

  • @neighbourhoodcoder5988
    @neighbourhoodcoder5988 4 ปีที่แล้ว +14

    this tutorial should get more recognition.....clearly explained. keep up the good work man,Cheers!!

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

      So happy to read your message Ahmed

  • @mmcooe
    @mmcooe 6 ปีที่แล้ว +5

    One point to note here is that unit tests in python recognize test cases only if prefixed with test_. Example: test_login_valid. If you don't prefix test then no error is thrown but tests run as Run 0 test in 0.00s

    • @tuannguyen-on1up
      @tuannguyen-on1up 5 ปีที่แล้ว +1

      correct. you're right. And that is why he used to prefix test

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

    I haven't seen that much crystal clear concept explanation... l'm fascinated by your teaching style and content provided by you... Thanks alott Sir👍

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're very welcome Sandip

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

    I really liked the quality and patience with which he teaches. Please, if you could continue with more advanced cases. Greetings from Peru!

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

      Hi Fraven, sure I will

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

    I like that it not only focuses on practice 100%, but also focuses on theory and concepts, such as the POM model.

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

      Thanks Fraven

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

    Thank you so much. with your tutorials I was able to create my own selenium auto tester that goes to a shopping site login and add an item to cart.
    I uploaded it to my github

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

      Glad to hear that Mike. Keep going

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

      @@RaghavPal Thank you sir... i subbed to your channel and will be following your tutorials...

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

    Did I say genius? Short. Sweet. And easy to understand!

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

    This is exactly what I needed, thank you very much for such a clear explanation!

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

      Most welcome Jose Luis

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

    Excellent video. Neat & Clear. You are good in teaching. Best video to learn Page Object Model for Python Selenium

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Glad & humbled to know this Dinesh

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

    Hi Raghav,
    Thanks to put this selenium framework using POM| Unit test| HTML reports. It was really helpful video for a beginner like me who are keen to learn about developing a sustainable framework.
    This video is really well structured and organized that can help anyone who does not have any prior knowledge in framework development.
    Coming to my query, I have imported HtmlTestRunner module and even added the report path in unittest.main().
    But, when i am trying to run the script in cmd, it shows the following error :
    Traceback (most recent call last):
    File "C:\Python38-32\lib
    unpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "C:\Python38-32\lib
    unpy.py", line 111, in _get_module_details
    __import__(pkg_name)
    File "C:\Users\Anjali\PycharmProjects\Selenium-Framework\DemoProject\POMProjectDemo\Tests\login.py", line 5, in
    import HtmlTestRunner
    ModuleNotFoundError: No module named 'HtmlTestRunner'
    Can, You tell me where i am making mistake.
    Thank you in advance : )

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Anjali, so happy to know this. Keep learning and also help others

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

    Great video, much appreciated. Best I have seen regarding POM.

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

      Hi Marco, thanks a lot for your kind words

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

    I was baffled about POM, But you make it so easy Thank you so much ...

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

      You’re welcome Harsh

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

    Thanks for your video! i am already watching this video 10 times!! this is very useful video!

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

      So happy to know

  • @Balkac
    @Balkac 5 ปีที่แล้ว

    Hello, thanks for nice presentation. I was looking mainly for POM explanation. I have observed following not completely well done parts:
    1. in action definitions in LoginPage, it would be a little better to define an objects at first (like username_text_box, password_text_box ...) and afterthat just called method under them (username_check_box.clear(), .send_keys() etc.. Instead you have lot of code repeated.
    2. Also will be better to create another method like loginIntoPage which takes arguments username and passrword, with all three previously created methods. Then you don't need call in your test all three methods for login into page, instead just one.
    3. it would be good to create some BasePage class with driver initialization. Then you don't need to initialize driver for every test.
    4. separate class for Locators - it is very discussable. The separation has basically no meanings (except less objects created in POM classes. But trying to find your locator in huge Locators file can be pain. And even more when you start running out of names :)

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

      Hi Kral, thanks for your inputs. I might have discussed these in other videos, but still, I will check your suggestions in detail wrt the video in some time

  • @heliamordejoiti9116
    @heliamordejoiti9116 4 ปีที่แล้ว

    You are definitely a role model for me. Thanks for doing a fantastic job with your videos. You're The Best Raghav. Greetings from a Venezuelan fan in Chile

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      So nice of you Heliam. Thanks a lot

  • @Manishkansara-dq5tj
    @Manishkansara-dq5tj 8 หลายเดือนก่อน

    Thank you so much for doing fantastic job, I am watching your all automation related videos and learned a lot.

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

      So happy and humbled to know this Manish.. keep learning

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

    This video is very very helpful for me I learned from here about POM and how to define class in main file , Thank you

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

      Great to know this. All the best

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

    Excellent video that covered all basics of Unit Testing, thank you!

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

      You're very welcome Ravi

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

    It was a really wonderful experience totally worth watching every second.

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

      So happy to know this Anurag

  • @МарияКотова-х3в3ц
    @МарияКотова-х3в3ц 4 ปีที่แล้ว

    Thank you so much! For a long time I could not find about POM. Your video turned out to be a godsend. Best video I've ever seen

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're most welcome Мария

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

      Мария я не знаю ответите вы или нет
      Но я хотел бы уточнить, POM который объясняется на видео актуален как для Pytest так и для Unittest?
      Или POM это обособленные концепция которая работает с любым фреймворком?

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

    Thank you for sharing the video, just for the libraries, you can add them from pycharm in settings, also pycharm has its own command line. I’m pretty sure you know that. So if you are using a powerful IDE, take advantage of it.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Thanks for the info Ricardo, I believe I have shown that in some part of the video, your message will help

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

    Awesome! Thanks a lot for this very interesting and clear course. I've recommended collegues and friends to watch these videos.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Awesome, thank you! Find more here - automationstepbystep.com/

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

    Excellent. Kudos For your Hardwork Man...

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

      Thanks Ahmed

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

    I am so lucky that I found this tutorial. Thank you so much. It is very clear and helpful.

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

      You're very welcome Muslima

  • @andresgarciafalcon2755
    @andresgarciafalcon2755 10 หลายเดือนก่อน

    Excellent tutorial!!! Thank you very much!!!

    • @RaghavPal
      @RaghavPal  10 หลายเดือนก่อน

      Most welcome Andres

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

    Thanks Amigo!! I was watching a lot of pom videos but they left me doubts, but you cleared my mind about POM. good video, with a plan, ordered and you were making progress on each item. and I stay clear and calm :) and ++ you taught me some about python!!!1

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

      Glad I could help Cristian

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

    Thank You Raghav it's Informative

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

      Thanks and welcome Naga

  • @raokblee2157
    @raokblee2157 5 ปีที่แล้ว

    Nice job Raghav! My Python POM is alive!

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

      Glad to know this Boten

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

    Many thanks it was very clear and well explained 👌

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

      Thanks a lot

  • @MrYyope15555
    @MrYyope15555 4 ปีที่แล้ว

    Amazing tutorial Raghav . Thank you so much !

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Most welcome Tomer

  • @RajaSekar-vz5ln
    @RajaSekar-vz5ln 2 ปีที่แล้ว

    Good presentation very good luck

  • @viachaslaumosilevich170
    @viachaslaumosilevich170 5 ปีที่แล้ว

    Tnx, very good. The best teacher here !

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Thanks a lot Viachaslau, humbled

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

    Solution for error message on running the invalid test on 53:00 :
    Needed to give parameters as so :
    message = driver.find_element_by_xpath(login.invalidUserName_msg_xpath).text
    instead of :
    message = driver.find_element_by_xpath("").text
    In the login.py file :P

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

      Thanks for adding Gilad

    • @giladhershcovitz1849
      @giladhershcovitz1849 4 ปีที่แล้ว

      @@RaghavPal Thanks for making awesome content!

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

    Hi Raghav , thanks for sharing . In my opinion I would prefer : visibility_of_element_located rather than presence_of_element_located coz I first wait for the visibility of the object and then yes I interact with that element.

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

      ok, sure can go with what is best for your needs and project requirements El

  • @nupurdeore
    @nupurdeore 5 ปีที่แล้ว

    You are very good in teaching and this is awesome video..Thank you.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Nupur

  • @artemkot7864
    @artemkot7864 4 ปีที่แล้ว

    This is an awesome video! I'm very grateful. Especially for brief overview on the practice of OOP test structure

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad it was helpful Артём

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

    Yes Sir, it is really helpful.
    Thank you very much 😊

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

      Most welcome

  • @jaiminbhavsar7541
    @jaiminbhavsar7541 4 ปีที่แล้ว

    Awesome tutorial.... with very good explanation of POM concept :) Thank you.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Glad it was helpful Jaimin

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

    Very good video, thanks for creating such material.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Krunal

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

    nice 1, waiting for the video of reading test input like username, password from the CSV file.

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

      will do i† soon

    • @sayari_sachanji
      @sayari_sachanji 6 ปีที่แล้ว

      Automation Step by Step - Raghav Pal thank you so much :)

  • @kiranattal5782
    @kiranattal5782 4 ปีที่แล้ว

    worth my time... genuine solid content

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Happy to know this Kiran

  • @sanjitroy1992
    @sanjitroy1992 4 ปีที่แล้ว

    Thanks a lot Raghav, this content is gold. :)

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Thanks a lot Sanjit, humbled.

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

    Hello, Raghav!
    This video is very useful for me.
    I'm a newbie in Selenium, and here are my questions:
    1) 50:59 - We should write "message = driver.find_element_by_xpath("//span[@id='spanMessage']").text" instead of "message = driver.find_element_by_xpath("").text". Am I right?
    2) 50:31 - We don't call the function "check_invalid_username_message" anywhere. Is it ok? When should it be called?

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

      1) Yes right
      2) You can call it wherever you need in your test. In case you do not need do not call

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

    How can I solve this error?
    TypeError: LoginPage () takes no arguments
    at login = LoginPage (driver)

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Tavo, pls check your LoginPage class and its constructor. Most probably, you have not taken any arguments in the constructor

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

    great video.. helped me lot..

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

      Glad to hear that Jyothi

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

      @@RaghavPal thank you.. but can you suggest what we should do if we get flex objects.. I have searched a lot, but no use.. please guide me..

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

      I will check on this

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

      @@RaghavPalthanks a lot..

  • @jaiprakasharora748
    @jaiprakasharora748 4 ปีที่แล้ว

    Thanks for the wonderful Video. Very well explained.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You're welcome Jai

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

    Great video. Could you please add on to this video by showing how to implement Behave into a framework like this? Thank you!

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

      Hi Tim, sure I will work on this in some time

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

    Hi there, I had a question. In what scenarios will running the tests from command line be helpful ? Doing that seems like more work when we can just run it from the IDE 😅

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

      Jele
      Let's break down the scenarios where running Selenium tests from the command line can be helpful:
      I am added all details. it can be long but i hope will help everyone in future...
      Scenario 1: Automation and CI/CD Pipelines
      When you're working on a large project, you might want to automate the testing process as part of your Continuous Integration and Continuous Deployment (CI/CD) pipeline. Running tests from the command line allows you to integrate your tests with tools like Jenkins, Travis CI, CircleCI, or GitHub Actions. This way, your tests can run automatically whenever code changes are pushed to your repository, ensuring that your code is tested thoroughly before deployment.
      Scenario 2: Multi-Environment Testing
      Imagine you need to test your application on different environments, such as different browsers, operating systems, or mobile devices. Running tests from the command line allows you to easily switch between environments by modifying the command-line arguments or environment variables. This can be more efficient than constantly changing settings within your IDE.
      Scenario 3: Distributed Testing
      When you have a large test suite, running tests in parallel can significantly reduce the overall testing time. Command-line execution enables you to distribute your tests across multiple machines or containers, making it easier to scale your testing efforts.
      Scenario 4: Headless Testing
      Sometimes, you might want to run your tests in a headless mode, without displaying the browser UI. Command-line execution makes it easy to run tests in headless mode, which can be useful for testing in environments where a display is not available or when you want to reduce the resource usage.
      Scenario 5: Scheduled Testing
      You might want to schedule your tests to run at specific times or intervals, such as nightly or weekly. Command-line execution allows you to use tools like cron jobs (on Linux/macOS) or Task Scheduler (on Windows) to automate the testing process.
      Scenario 6: Remote Testing
      When working in a team, you might want to run tests on a remote machine or a cloud-based infrastructure. Command-line execution enables you to run tests remotely, making it easier to collaborate with team members or use cloud-based testing services.
      Scenario 7: Debugging and Troubleshooting
      When debugging issues, running tests from the command line can provide more detailed output and error messages, making it easier to identify and troubleshoot problems.
      While it's true that running tests from the IDE can be more convenient, there are scenarios where running tests from the command line provides more flexibility, scalability, and automation capabilities
      -

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

    I have one general question regarding writing test cases. Suppose if we are testing a form and if it has 2 inputs (login and password) then should we write all the test cases for it?
    1) Valid Login name, Valid Password
    2) Valid login name, Invalid Password
    3) Invalid Login name, Valid Password
    4) Invalid Login name, Invalid Password

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Nandish, yes you can cover all possible scenarios. A data driven test will be better here where you can get the data drom a external file like excel

    • @nandishajani
      @nandishajani 4 ปีที่แล้ว

      @@RaghavPal thanks. But suppose if there are 16 input items in the form then i think there will be thousands of test cases if we follow the same approach.. So how to write test cases in that scenario?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Sorry for late reply Nandish, I believe the test is same and the data varies, In that case data-driven test OR getting data from an external file is the best option.

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

    Must worth to watch 👍

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

    Hi Raghav, I see that you have used HtmlTestRunnerfor generating the reports but this does not seem to work with python 3.0+ is there any other alternative?

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

      Hi Vishal, can check the ver that works with Python3, pypi.org/project/HTMLTestRunner-Python3/

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

    Excellent Tutorial Raghav, Could you please tell me why we use constructor here?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Pradeep, constructor is called whenever we create a object of the class. We make use of this property to force user to provide some parameters while creating objects

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

    Have Enjoyed your session and learned lot sir. There is small mistake in xpath that you didn't call the function "check_invalid_username_message ".

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      I will check Kamalnath. Thanks for watching

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

    wonderful video, thankyou veryyy much

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

      You're welcome

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

    Amazing quality, eventhough is old version of selenium if you know how to set up new on this will give you a complete Idea how to work with each topic, If you a have some projects we can practice this topic please let me know.

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

      Sure, will check on that

  • @aliozyer5487
    @aliozyer5487 5 ปีที่แล้ว

    da best teacher ever

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Honored & Humbled to read this Ali. Thanks

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

    I have a small question. Around @11:39 in the video you have used find by link text. Now if I have multiple links of same text (like a click here text but at multiple places in a same page table), but dont have any identifier like id or class is there anyway to access one particular link?

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

      Hi Loga, in that case you can use index value

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

    Hi , I see a lot of people have blocked on unresloved error problem for import: ImportError: No module named SampleProjectPOM.POMDemo.Pages.LoginPage
    but it seems that there is no solution posted yet :(
    could some one help ? (for info, even when marked the floder as sources ROOT it doesn't work)
    thank you in advance :)

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Saber, I have shown the solution in this video from th-cam.com/video/BURK7wMcCwU/w-d-xo.html. Please check.
      Start your command with python -m pytest
      Please check this:stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayadagithub.com/pytest-dev/pytest/issues/2287

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

    Raghav, can you please make a video on how to explain our framework with respect to OOPS concepts.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Sure Akshat, you may find some tutorials on programming and OOPs here - automationstepbystep.com/

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

    Great tutorial. Completely understood. The only thing is that ,for me in loginpage, homepage class if i do self.driver. ,then no option for find elements was showing, i have done it manually and its working fine. This is strange.

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

      Hi Tapas, you might have imported the class with all properties

  • @robertsorbet5729
    @robertsorbet5729 4 ปีที่แล้ว

    Everything's perfectly explained as usual. Only one question arises. How do I add another test to continue in the same browser window? I know how to initiate a new window, but how can I continue?

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

      Hi Robert, you can do the following
      Start the session (browser) only once and do not close or quit at the end of first test, continue or call the next test case. Can check this - www.lambdatest.com/blog/pytest-tutorial-executing-multiple-test-cases-from-single-file/

  • @locnguyen2306
    @locnguyen2306 5 ปีที่แล้ว

    Thank you bro! It's such an awesome lesson to me.

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

      Glad to know this.

  • @Canda-fh4xc
    @Canda-fh4xc 5 ปีที่แล้ว +2

    Thank you for this great tutorial. Do you have any tutorial about Appium?

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

      Hi Sam, thanks for watching Appium will be coming soon

  • @ArturSpirin
    @ArturSpirin 5 ปีที่แล้ว

    Every video I have watched teaches POM in a half baked manner. Its like info here is not wrong but its incomplete and thus steers people the wrong way because once they learn this - its hard to unlearn and do it right (that's assuming they even will continue try to improve their skills in page objects, most will just assume this is the only way).

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Artur, you can provide more details. It will help all

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

    Great video as always Raghav, however I had a question, how do you test multiple UI (like buttons and creation of forms) in the site itself without logging out? do I have to write new tests scripts in which I have to login once again everytime? or is there a better way?

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

      Abhishek
      There are a few ways to test multiple UI elements on a website without logging out in Selenium Python.
      *1. Use a test framework that supports fixtures.* Fixtures are reusable objects or data that can be shared between test cases. For example, you could create a fixture that logs in to the website, and then use that fixture in all of your test cases.
      *2. Use a page object model.* A page object model is a design pattern that helps you to organize your test code and make it more reusable. You can create a page object for each page on your website, and then use those page objects in your test cases.
      *3. Use a test runner that supports data-driven testing.* Data-driven testing allows you to run the same test case with different data sets. This can be useful for testing different combinations of UI elements.
      Here is an example of how to use a fixture to test multiple UI elements on a website without logging out:
      ```python
      import unittest
      from selenium import webdriver
      class TestLogin(unittest.TestCase):
      @classmethod
      def setUpClass(cls):
      cls.driver = webdriver.Chrome()
      cls.driver.get("example.com/login")
      # Login to the website
      cls.driver.find_element_by_id("username").send_keys("username")
      cls.driver.find_element_by_id("password").send_keys("password")
      cls.driver.find_element_by_id("login").click()
      @classmethod
      def tearDownClass(cls):
      cls.driver.quit()
      def test_button_click(self):
      # Click on a button on the website
      self.driver.find_element_by_id("button").click()
      # Verify that the button click was successful
      self.assertEqual(self.driver.current_url, "example.com/success")
      def test_form_creation(self):
      # Create a new form on the website
      self.driver.find_element_by_id("name").send_keys("John Doe")
      self.driver.find_element_by_id("email").send_keys("john.doe@example.com")
      self.driver.find_element_by_id("submit").click()
      # Verify that the form creation was successful
      self.assertEqual(self.driver.current_url, "example.com/success")
      if __name__ == "__main__":
      unittest.main()
      ```
      This test case will login to the website using the fixture in the `setUpClass()` method. Then, it will click on a button and verify that the button click was successful. Finally, it will create a new form and verify that the form creation was successful.
      You can use this same approach to test multiple UI elements on a website without logging out. Simply create a new test case for each UI element you want to test, and use the fixture in the `setUpClass()` method to login to the website.
      I hope this helps

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

      @@RaghavPal yes sir this is very helpful but I have another question, when I save the test results of this code for example, to an html how can each test be validated and shown as passed with a message?

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

      not very sure, will need to check online

  • @MyRocknRolll
    @MyRocknRolll 4 ปีที่แล้ว

    Hello and thank you!
    One question about 43:31.
    In my project I have file with test cases in test-library/folder1/folder2/folder3/file.py.
    I did the same actions as in 41:33, because I need to import some classes in my file
    And then, when I'm in test-library folder, I run in terminal "python3.5 -m folder1/folder2/folder3/file.py".
    An error message appeared "/usr/bin/python3.5: Error while finding spec for 'folder1/folder2/folder3/file.py' (ImportError: No module named 'folder1/folder2/folder3/file')
    "
    Could you please answer why is it happened?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi, I have shown the solution in this video from th-cam.com/video/BURK7wMcCwU/w-d-xo.html. Please check.
      stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayada
      On command line go one folder up from the folder from where you have any imports in your script
      For example this is your project structure:
      ProjectFolder/Example/Demo/file.py
      In you file.py you have your code with import statements.
      Suppose one of the import is from Demo folder
      So on command line goto folder Example (parent of demo folder)
      and then say command
      python -m unittest Demo.file .
      (note do not give .py extension)
      stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayada

    • @aurontz
      @aurontz 4 ปีที่แล้ว

      This will fix it for you. Replace with this.
      import sys
      sys.path.append(".")
      from folder1.folder2.folder3 import file.
      You have to use a period (.). You cannot use a / to separate folders here. "sys.path.append(".") will replace the / with a . to make it work. Do NOT put ".py" after file

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

    As Always ... The Best

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Thanks a lot Azhar

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

    how to open the orangehrm site with english text, it is opening for me in chines language?

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

      Hi Srinivasa, its from the backend, you can use these to practice
      opensource-demo.orangehrmlive.com/
      trytestingthis.netlify.app/

  • @wluna5946
    @wluna5946 4 ปีที่แล้ว

    Very good tutorial , any video how to create a web from basic by sampling

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Awaluddin, what exactly are you looking for, Can check the tutorials here - automationstepbystep.com/

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

    Hi Raghav, Thank you so much for the tutorial.But when I try to import HTMltest runner in pycharm which is already installed via cmd, shows not installed and when I try to install the package in Pycharm, getting following error.
    Collecting HtmlTestRunner
    Could not find a version that satisfies the requirement HtmlTestRunner (from versions: )
    No matching distribution found for HtmlTestRunner
    Please help.

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

      Hi Shilpa, can you check the documentation for HTML runner and see the supported python versions.

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

    Thanks a lot bro, Your videos are always Excellent. Please make videos on Serverless AWS.

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Thanks Ahmed, will pick that soon

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

    love this video💖💖

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

      Thank you Sai

    • @saikrishna3032
      @saikrishna3032 5 หลายเดือนก่อน

      @@RaghavPal 😍

  • @Last_wink
    @Last_wink 4 ปีที่แล้ว

    Nicely explained.. !!

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

      Thanks for watching

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

    This is a great tutorial, helped me to build a framework on my own. Thank you. I do have a question. How do I read text on a button on a page? I tried using find_element_by_name but it don't work.

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

      Use this..
      Element = driver.find_element_by_id("some name")
      Print(Element.text)
      Hope dis will help you...

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Thanks for your inputs Satheesh. Neha, hope this is useful

    • @nehadubey221
      @nehadubey221 5 ปีที่แล้ว

      Satheesh Kumar Thankyou for your help. In my case there was no id on the button so I finally used the combination of name and value as it is unique and it worked.

    • @nehadubey221
      @nehadubey221 5 ปีที่แล้ว

      @@RaghavPal @Satish I got the other issue working however now I am facing another big issue. How do I check for the existence of a modal/dialog. It is not an alert so I cannot use switch_to alert method. The html element I am speaking of has following arguments: role=dialog aria-labelledby=label aria-describedby=description. Any hints wold be highly appreciated. Thank you.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Neha, is this site accessible publicly? You can check this
      stackoverflow.com/questions/19003003/check-if-any-alert-exists-using-selenium-with-python
      huddle.eurostarsoftwaretesting.com/selenium-interact-modal-windows/sqa.stackexchange.com/questions/26130/java-selenium-check-if-modal-popup-present

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

    What if I create like in Java a "base_class.py" with the selenium driver instance and the set up methods in it? I got this question because the way you're teaching, we will need to code in every test class driver = webdriver... driver.implicity.... and I have learned that when we are repeating code, there is something not planned. What is your point?

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

      Hi Danilo, yes you can create a base class where web driver is instantiated, i will cover this in some future video.

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

      @@RaghavPal Cool! Great videos by the way!!!

  • @krishnakishore6180
    @krishnakishore6180 5 ปีที่แล้ว

    Hi Raghav
    I bought your Selenium Python course in Udemy , appriciate your explanation and also i want to request you add the topics like handling calenders, alerts, Javascrip objects and mainly End to End BDD framework which is in high demand . Please help us in updating the topics

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      I will work on this Krishna

    • @krishnakishore6180
      @krishnakishore6180 5 ปีที่แล้ว

      @@RaghavPal will be really great help Raghav. Also please let me know if you are planning to update Devops videos i will be purchasing them i am in much needed topics like Ansible, Terraform etc and other devops topics.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Krishna, I am in process of developing these courses. As of now Kubernetes is in progress will do others in sequence.

  • @siddhee18bugata15
    @siddhee18bugata15 4 ปีที่แล้ว

    Hi Raghav,
    I was facing issues in understanding the concept of POM in selenium Python, your tutorial above has cleared all my doubts and implementation of POM in selenium Python Raghav, thx a ton for helping us out with such useful videos on testing stack, Raghav, the above POM what ever has been explained in the video is without using Page Factory ryt?? correct me if i'm wrong.. Can u kindly explain the same above example and concept by also using page factory and POM as well in selenium python.. It would be really useful for us ...
    Thanks in Advance,
    Siddhee :)

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

      Happy to know this Siddhee, will do a session on Page Factory too

    • @siddhee18bugata15
      @siddhee18bugata15 4 ปีที่แล้ว

      @@RaghavPal Thanks a ton Raghav :), will be waiting for your tutorial on Page factory model in selenium python, kindly do let me wen u upload it.. and also i have to admit whenever ppl have doubts/questions u always took that extra initiative in replying to each and everyone whoever has doubts and commented..that virtual help is much needed and thanx a ton again Raghavv :)
      Thanks in Advance,
      Siddhee :)

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

    Awesome video, very helpful.
    Might someone know how I can get the description if each test in the generated report? I'm trying 'descriptions=True' but no luck.

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

      Hi Yelsin, hope you have added descriptions in the test case, will need to check more on this

  • @ChatGPTtest-tp3vi
    @ChatGPTtest-tp3vi 6 หลายเดือนก่อน +1

    Hello Raghav Da, Thanks for this amazing tutorial. I could follow most of it without any problem but facing a bit of issue when calling the loginpage class in my logintest. So when ever I am creating an object of that class it is throwing error because of the parameters called. Its says the parameter is unrecognized. When looking for the suggestions I am getting the parameter as "driver=".
    I am not sure what should be the value of the driver, what should I put after equals sign.. when calling it in the test class, can you please help?
    Thank you so much.
    Binita

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

      Binita
      When working with the Page Object Model (POM) in Selenium Python, you need to pass the WebDriver instance (the browser driver) to your page classes. Let’s address this issue:
      1. Passing WebDriver to Page Classes:
      - In POM, each page class should have a `WebDriver` object as a class member. This allows you to interact with web elements on that page.
      - You can pass the `WebDriver` instance as a parameter to the constructor of your page class.
      2. Example Implementation:
      - Suppose you have a `LoginPage` class. Here's how you can pass the `driver` to it:
      ```python
      from selenium import webdriver
      class LoginPage:
      def __init__(self, driver):
      self.driver = driver
      # Other page elements and methods go here
      # Usage in your test class:
      driver = webdriver.Chrome() # Initialize your WebDriver (e.g., Chrome, Firefox, etc.)
      login_page = LoginPage(driver) # Create an instance of LoginPage
      ```
      3. Page Factory (Optional):
      - If you're using Page Factory (a part of POM), you can simplify this further:
      ```python
      from selenium.webdriver.common.by import By
      from selenium.webdriver.support.ui import WebDriverWait
      from selenium.webdriver.support import expected_conditions as EC
      class LoginPage:
      def __init__(self, driver):
      self.driver = driver
      # Initialize page elements using @FindBy annotations
      # Usage in your test class:
      driver = webdriver.Chrome()
      login_page = LoginPage(driver)
      ```
      Remember to adjust the class name (`LoginPage` in this example) to match your actual page class
      --

  • @PREC0GNITAVE
    @PREC0GNITAVE 4 ปีที่แล้ว

    Thanks for this video. I was wondering if you could do a tutorial on deployment of a framework like this to a server or VM? For example if I created a project like this in Pycharm or whatever IDE and then wanted it running on a server via command line?

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

      Hi, sure, I will plan a session on this

    • @PREC0GNITAVE
      @PREC0GNITAVE 4 ปีที่แล้ว

      @@RaghavPal Oh that would be most appreciated thank you!

  • @milanblaz1685
    @milanblaz1685 5 ปีที่แล้ว

    Anyone having issues with setUpClass not being called before each test, just rename the setUpClass into setUp and it will work.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Thanks for adding Milan

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

    Hello sir, Could you please make a video on selecting dependant drop down values in an array which is for example if you select one drop down value then another drop down should appear in the UI so that I can select the next drop down value. Currently I am facing problem in automating this in python

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Prabhu, I will plan to have a session on this, In case you have some demo website, can send me the link

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

    is tab spacing not required as we discussed in one of the previous sessions?
    can you please clarify

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

      Hi, it will be needed

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

    Hi Raghav, Thank you very much for your tutorial. I want to capture screenshot when the test case fails and i want to add same screenshot to the html report. Is this possible in selenium-python? if yes, please help me how can I do that.

    • @amareshawati1563
      @amareshawati1563 5 ปีที่แล้ว

      Hi Raghav, Any luck on this?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Amaresh, you can use PyTest. This will help - www.automationtesting.co.in/2017/02/pytest-with-selenium-html-report-with.html?m4dc=1
      stackoverflow.com/questions/50534623/how-do-i-include-screenshot-in-python-pytest-html-report

  • @photodoor913
    @photodoor913 6 ปีที่แล้ว

    Thank you so much for this tutorial! I was having a hard time understanding the basics in getting this started, but you explained it very well. Is there any way at some point you can show how to select drop downs with Page Object Model and using dynamic data? Thanks again!

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Glad to know that Mike, I will add more videos. You can also get the complete course here - www.udemy.com/selenium-python-step-by-step-for-beginners/
      Use coupon - DISCOUNT_UDEMY

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

    i can somehow call out method from another file but the code isn't running saying that it doesn't find the module despite the fact that I've changed directory of module package either by import sys ... edit enviroment in windowds or run launch.json and settings.json. I'm kinda hopeless at this point. I rly want to finish this project but i cannot go past this problem in VS code.

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

      Hi Łukasz, pls check this github.com/microsoft/vscode/issues/10391

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

    Excellent

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

    Could please suggest me Build tools for Python selenium
    And for Ci tool

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Keisha, for build tool you can use PyBuilder - pybuilder.github.io/
      Also check this - packaging.python.org/guides/tool-recommendations/
      For CI Jenkins is good

  • @dhanashriaherkar2605
    @dhanashriaherkar2605 5 ปีที่แล้ว

    Hi Raghav...really good explaination. Awesome for beginners. I am unable to access Orange HRM site to practice it. Could you suggest on this?

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

      Hi Dhanashri, pls check - opensource-demo.orangehrmlive.com/
      orangehrm-demo-6x.orangehrmlive.com/auth/login
      You can do practice on any demo website

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

      @@RaghavPal Thank you so much:)

  • @dhanashriaherkar2605
    @dhanashriaherkar2605 5 ปีที่แล้ว

    Hi Raghav, I have covered all the 17 videos of selenium python. Its really useful. Do you have further session of same? like advance coding?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Dhanashri, There is a course with complete framework development step by step on my Udemy channel - automationstepbystep.com/udemy-discounts/

  • @manjunathhunashikatti2134
    @manjunathhunashikatti2134 4 ปีที่แล้ว

    The Best !!! , Clear and straightForward Explaination Thank you , can you suggest any Python module I can use for Desktop application UI automation Testing???

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

      Hi Manjunath, you can try Robot Framework libraries

    • @manjunathhunashikatti2134
      @manjunathhunashikatti2134 4 ปีที่แล้ว

      @@RaghavPal iam using pywinauto currently and eventually will integrate with robot framework but is there any specific other libraries than pywinauto?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      This should be fine, You can search in case you have any more needs

  • @veenasudeep683
    @veenasudeep683 5 ปีที่แล้ว

    Thanks a lot for the awesome video !!!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome Veena

  • @mat7739
    @mat7739 4 ปีที่แล้ว

    Hi. Could you do a session with API call. What are the various APIS call which we can use in Python. A sample project will be useful with codes

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Great suggestion! Noted Mathangi

  • @Sparshchokra
    @Sparshchokra 5 ปีที่แล้ว

    Hi Raghav, may i please know which type of automation framework are you following in showed example?

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

      Hi VAshu, you can say this is . Hybrid POM

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

      Thank you for your response Raghav, one general doubt is as -- can we use POM with Keyword driven framework? If we develop keyword and behind the scene use POM, is it acceptable? I'll appreciate your comment.

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

      Yes Vashu, POM is basically a design to keep objects and test scripts separately. you can implement this in keyword, data-driven or hybrid frameworks

    • @Sparshchokra
      @Sparshchokra 5 ปีที่แล้ว

      Thank you Raghav.

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

    This video is so lucid. Thank you! one doubt- reports are not generating for me. I am running script from IDE. Is it necessary to execute script using command prompt in order to get the report generated? Please answer.

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

      Hi Sweta, thanks for watching, there are some reporting lib that work from cmd line I must have shown some examples may be in later videos on how to generate reports from IDE

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

      @@RaghavPal thanks a lot, Raghav. I generated default report from the console. That also helped me. 😊

  • @darshanmm9
    @darshanmm9 6 ปีที่แล้ว

    Excellent video Raghav, can you please increase your editor font size so we can read it more easily on mobile screen also?😊

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Thanks for watching Darshan, sure I will do that.

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

    from POMProjectDemo.Pages.loginPage import LoginPage
    ModuleNotFoundError: No module named 'POMProjectDemo' in vs code kindly why we get plz provide solution 35:39

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

      Hi Ram,
      I have shown the solution in this video from th-cam.com/video/BURK7wMcCwU/w-d-xo.html.
      Please check. stackoverflow.com/questions/10253826/path-issue-with-pytest-importerror-no-module-named-yadayadayada
      on command line go one folder up from the folder from where you have any imports in your script
      For example this is your project structure: ProjectFolder/Example/Demo/file.py In you file.py you have your code with import statements.
      Suppose one of the import is from Demo folder So on command line goto folder Example (parent of demo folder) and then say command python -m unittest Demo.file . (note do not give .py extension)

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

    I really liked your content. We are implementing the test with Selenium using Python. Did you make the course available on github?

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

      Hi Iago, can check here github.com/Raghav-Pal/SeleniumPythonProject
      github.com/Raghav-Pal/PythonAutomationFramework_1

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

      @@RaghavPal Thanks for answering teacher!