#93 POM Framework - Part 1 | Playwright with Python and Pytest | Page Object Model Design Pattern

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

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

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

    Thankyou for sharing the tutorials. However can't see anythng releated to reporting and screenshot capturing of failed scenario. Can you please share the link of that video where u have covered this functionality if there is any?

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

    thanks for all your contributions!
    just in case, you saw the new v1.27 ? with the new Locators

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

      Yes. I have already created videos on new locator api and Live locator which are introduced in version 1.27.1 and 1.28. Please check it out

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

    And in my project I have multiple environments like staging, pre prod, live etc. For each environment we have different ssh port, host , db username, password. I am able to connect to DB by opening SSH tunnel. But what I want that I specify env in pytest.ini file . For example I said pre prod then it should take pre prod info and connect to DB. If you can provide some info here.

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

    Hi, what you think about playwright typescript? Playwright python or playwright typescript which best?

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

    Hello @automationNeemo, can you plz let us know how to separate common locators (like header and footer) into separate page file ?

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

    Thank you so much sir ❤

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

    Thanks for the knowledge sharing, can we use multiple fixtures for a test. Lets say I want to open browser and want to do login also so I have created two fixtures. 1) setup 2) login and in two tests I want both and in one test I want only setup fixture. How to do that

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

      Yes this is possible. I will soon create a video on it. Thanks for watching!

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

      Please checkout this video - th-cam.com/video/ECLCAqJGUU8/w-d-xo.html

  • @sukhveersingh2399
    @sukhveersingh2399 7 หลายเดือนก่อน

    Hello Sir why src package is created ?

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

    Thank you!! is there going to be part 2 for pom?

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

    Hi friend,
    It's very clearly and useful. Is there any course from Udemy of you? so I can buy it
    Thanks so much

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

      Hi,
      Glad that you found it useful.
      I don't have any course in Udemy
      Thank you!

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

      @@automationneemo
      ValueError: Unsupported type:
      Hic, I got this error message when trying to use Expect from playwright. Have you faced it ?

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

      @@haunguyen4054 it looks like you are incorrectly passing your selector in expect
      expect(locator).to_have_text("text")

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

      @@automationneemo I am applying same as POM from you, and locator from get on Class, hic, maybe i will try on tomorrow, goodnight

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

      @@automationneemo Hi Neemo,
      I found the error when using
      @property
      def page_title(self):
      return self._products_header
      home_p = login_p.login(credentials)
      expect(home_p.page_title).to_have_text("Products")
      And someone said because
      The error message suggests that the to_have_text() method is expecting a string argument but received a Locator object instead. In your code, page_title is a property that returns the Locator object _products_header, which represents the page title.
      To fix the error, you should modify the page_title property to return the text of the page title instead of the Locator object. You can use the text_content() method of the Locator object to retrieve the text.
      So do you have any idea?