What Is Page Object Model? | pytest Framework Tutorial | Part-IX | LambdaTest

แชร์
ฝัง

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

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

    📌 GitHub Repo:
    github.com/RexJonesII/PytestTutorials

  • @vishalloke
    @vishalloke 9 หลายเดือนก่อน +1

    Why the intelligecne is not working in pycharm driver. is now showing ftind_element method

    • @LambdaTest
      @LambdaTest  9 หลายเดือนก่อน

      Hey there,
      If IntelliSense is not working in PyCharm for the find_element method, it might be due to a few common issues:
      - IDE Configuration: Ensure that PyCharm is correctly configured for your Python environment and that the Selenium package is properly installed in the interpreter you're using.
      - Selenium Version: Check if you're using a recent version of Selenium. The method signatures and APIs can change between versions, and PyCharm's IntelliSense might not recognize methods if there's a mismatch.
      - Indexing Issues: Sometimes, PyCharm may not have fully indexed your project or the external libraries. Try invalidating caches and restarting PyCharm (File > Invalidate Caches / Restart).
      Make sure your setup aligns with these points for IntelliSense to work correctly.

    • @vishalloke
      @vishalloke 9 หลายเดือนก่อน +1

      @@LambdaTest I have done all these still my intellisense is not working, could you please help me I am using lambdatest for the same

    • @LambdaTest
      @LambdaTest  9 หลายเดือนก่อน

      Hey there,
      Can you share more about your project with us at support@lambdatest.com
      We would be happy to help :)

  • @devarajsnaidu3168
    @devarajsnaidu3168 9 หลายเดือนก่อน +1

    @LamdaTest
    Am getting unresolved driver attribute in pytest testcase when we initialize loginpage in pytest testcase
    loginpage=Loginpage(self.driver)
    Could you help me on this

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

      Hey there,
      It sounds like you're encountering an issue with accessing the driver attribute within your pytest test case, particularly when you're trying to initialize an instance of LoginPage. This issue commonly occurs due to a few reasons, such as the driver not being properly set up or passed to the test method, or perhaps a scope issue within your test class.
      Without seeing the full code, I'll provide a general approach to troubleshoot and potentially resolve this issue:
      Ensure Proper Initialization of driver
      Firstly, make sure that self.driver is correctly initialized within your test class. This is typically done in a setup method, which is executed before each test method runs.
      Use of self.driver
      In the code snippet you provided, loginpage=LoginPage(self.driver), it appears within a class method where self.driver should be accessible assuming self.driver has been correctly initialized as part of the class instance. Make sure that self.driver is initialized in a method that runs before your test methods, such as a setup method annotated with @pytest.fixture.
      Passing the driver to the Test Method
      If your test methods are designed to receive the driver as an argument, ensure you're using a pytest fixture to inject the driver into them.

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

    Rex i have a question , what is the use of Locators file , when we are adding page wise locators and their methods in pages

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

      Hey Megha 👋🏻
      The "Locators" file is a separate file where you define the selectors for elements on your web pages. It centralizes the locators used across multiple pages, improving code organization and reusability. By separating locators, you can easily update them in one place and promote code maintenance. Page files can import and use these locators, keeping them focused on page-specific methods and actions.

  • @nandhakumar.g142
    @nandhakumar.g142 ปีที่แล้ว

    Thanks much Rex, Love from India 🫰❣️

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

      Subscribe, and look forward to more such tutorials! ✨

  • @trevor7481
    @trevor7481 8 หลายเดือนก่อน +1

    Whats up rex 💯

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

    Thank you Rex :)

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

      Glad you liked it 😊
      Subscribe to our channel for more such tutorials! ✨

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

    Thank you Rex!

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

    Thanks a lot!

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

      You're welcome!
      Subscribe, and look forward to more such tutorials! ✨

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

    thanks sir

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

      Glad you liked it!
      Please subscribe to the channel for more such video tutorials🙂