#8 - How To Record And Play Scripts In Playwright | Playwright Test Generator| Codegen Playwright
HTML-код
- Опубликовано: 10 сен 2024
- In this video, I will explain how to generate code automatically in Playwright using codegen.
Playwright Series
• Playwright Tutorials F...
JavaScript Series
• How To Download And In...
Create your testRigor account now- testrigor.com/...
All Playlist
/ mukeshotwani
If you want to support this channel
rzp.io/l/qNCAp...
All Playlist
/ mukeshotwani
Connect with us:
Email - mukeshotwani@learn-automation.com
Linkedin- / mukesh-otwani-93631b99
Instagram- / mukeshotwaniofficial
Facebook Group- / 256655817858291
Facebook Page- / seleniumwebdrivermukesh
Blog- learn-automatio...
Nice explanation 👏, This record and playback mechanism will make playwright different from other JS based automation tool.
Yes I agree on this point 😊🙏🏼
Thank you for detailed explanation. Its helpful.
You are welcome! Ira
your audio is really quiet through the right channel
Audio is fine, please check once from ur side.
Hi Mukesh,
Hope you're doing well, This is Abhay Pareek from the Digital Orix team I have been watching your content for the past few months, and literally, you are doing a great job. it is informative and the quality of the content is exactly to the point.
Mukesh, on behalf of our team and our client Tech Grid we would also like to add our contribution to your channel by providing you with the service that they provide so that you can go ahead and test that and give a full review on your channel.
It would be our pleasure to work with you.
Thank you
Abhay Pareek
(Content Department)
Team Digital Orix
Was helpful. Thank you!
Glad it was helpful!
Very nice, thank you
Our pleasure!
I guess in the latest version they have removed the functionality to automatically add the assertion because when I have tried it parallel while you were doing it in video the assertions which got added for you automatically doesn't get added for me and it is not verifying the title URL in both cases login and logout.
No idea will check with latest version. Mayank I would suggest dont rely on record and playback tools for dynamic application
Is it possible to replace getByRole default locator with something of developer's choice? For example, the other locator getByTestId() instead of getByRole() and how to do that?
I know chromium is the browser of choice for Playwright (for God knows why). Is there some way to set this up either in Chrome or Chromium to use a proxy for lower environments? This feature only seems to support Prod.
Yes you can, please use below in config file
{
name: 'Google Chrome',
use: { ...devices['Desktop Chrome'], channel: 'chrome' }, // or 'chrome-beta'
}
If i wanted to test the functionality of an app or website, do i need to always sign into (login) the website or app?
Hi Bro, I am working as a manual tester, wants to learn automation. But don't have coding knowledge. This playback testing in playwright gives me hope for learning automation. I have some doubts on this Playback method.
Is there any major challenge in playback testing compared to writing codes for testing? what is the difference between writing code and playback testing? Can we use this playback for all UI web automation?
I'd like to know as well.
You can use if the application in question is very static, you could use the same scripts / playbacks.
However for dynamic applications that move around / have randomization and so on... you will need CODE in a language thats for sure.
@mukesh
can I record on non-incognition chrome or can I record which ever page I want to not starting from login page
Hi Mukesh,
I tried the record and play today but i am not getting the expect line of code added by default.
Hi Sindhu, I wont recommend record and play for dynamic application.
@@Mukeshotwani yes. I continued watching your next series. And I am able to follow up coding easily. Thanks
Great Stuff, amazing content. I have a quick question about the Codegen record popup, I am unable to see JavaScript in the target dropdown, using Playwright version 1.29.1. any lead will be highly appreciated
Pls do a video for botium automation.
Done will try
Javascript code option is not available in dropdown for code generation can you please provide command to generate java script code
Will it work with visual studio 2022
Yes
I prefer to watch your videos in 1.25x😅
Hey Mukesh....I have a project for you.
Can we discuss about it?
Sure please share the project details to this email will connect accordingly
mukeshotwani@learn-automation.com
I have sent you a mail...please check it
@@maoskitchen sure will do that thank you
where are the commands ?
I am getting fail in final
Hi Pooja can u please explain in detail like what is failing ?