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?
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.
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 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?
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?
thanks for all your contributions!
just in case, you saw the new v1.27 ? with the new Locators
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
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.
Hi, what you think about playwright typescript? Playwright python or playwright typescript which best?
Hello @automationNeemo, can you plz let us know how to separate common locators (like header and footer) into separate page file ?
Thank you so much sir ❤
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
Yes this is possible. I will soon create a video on it. Thanks for watching!
Please checkout this video - th-cam.com/video/ECLCAqJGUU8/w-d-xo.html
Hello Sir why src package is created ?
Thank you!! is there going to be part 2 for pom?
Yes. Part 2 is coming soon
waiting....thanks
Hi friend,
It's very clearly and useful. Is there any course from Udemy of you? so I can buy it
Thanks so much
Hi,
Glad that you found it useful.
I don't have any course in Udemy
Thank you!
@@automationneemo
ValueError: Unsupported type:
Hic, I got this error message when trying to use Expect from playwright. Have you faced it ?
@@haunguyen4054 it looks like you are incorrectly passing your selector in expect
expect(locator).to_have_text("text")
@@automationneemo I am applying same as POM from you, and locator from get on Class, hic, maybe i will try on tomorrow, goodnight
@@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?