How To Debug Playwright In VsCode | Playwright Tutorial - Part 42

preview_player
Показать описание
Debugging is very essential to identify the problem of the script in the run time.
In this video, let's see how to debug playwright code in vs code easily.

--------------------------Thank you---------------------------

Thanks for watching, if you like the video, give it a thumbs up 👆.
Sharing is caring, kindly share the video with your friends and colleagues.
Don't forget to subscribe and hit the bell 🔔 notification.
--------------------------------SOCIAL--------------------------------

Join our WhatsApp group.

#letcode #playwright
Рекомендации по теме
Комментарии
Автор

Hi @letcode, I performed same steps however my breakpoints becomes unbound breakpoint on debugging and they appears like hollow and not shown as active breakpoint. Can you confirm if any other settings are required to get my breakpoints working?

AkshayTyagi
Автор

Hi Koushik,
Thank you for this playlists, there is nothing like it in YouTube right now.

I have got a request, can you do a similar list with python.

That will be of great help.

Автор

Hi Koushik, when can we expect a video on cucumber with playwright. Thank you

prasadverma
Автор

Thanks for making this video Koushik.

Is it Possible to change the values in runtime??

saivamshikrishnapeddammala
Автор

Awesome, thanks
is it possible to evaluate in debug console like "await page.click('''xpath)" to perform an action
and is it possible to change the expression on the fly to try for example multiple xpath selector until the target is ok,
I mean without rerunning all the test, just pausing the debug mode and then try some actions

dragon
Автор

How to run a specific test in a file? I tried -g 'test_name' inside the scripts command but it's not picking the test. I tried giving the line number also after the file name in testMatch like file_name:line_number but still not picking the test.

atulsingh
Автор

As always really good stuff. I like it and i am happy to watch new content.

If u have the time, would be happy if u could answer me the following question:

In cypress i can invoke an attribute and do an assertion with it:

e.g.: cy.contains('mat-icon', 'shield').invoke('attr', 'class').should('contain', 'mat-tooltip-trigger')

I searched the whole day but i didnt find a way to do this in playwright.

Appreciate any help

grasiboy
Автор

Can we debug Playwright with Cucumber also?

ashirbadprusty
Автор

Hi Koushik, I would like to create a automation framework with all the features of Playwright. So, Can u pls guide us by creating a course in udemy or any other platforms. I am ready to pay even its paid. 😊

ganesan
Автор

Hi Koushik, I'm using waitForResponse to check the status of API. This step is waiting till the status becomes 200. But in the response body I have message as "Inprogress". I want my script to wait till the message becomes "completed". Can you please help me to achieve this. Thank you.

prasadverma
Автор

It is good video. I can debug in vs code as your guide however I cannot run without debug mode by command 'npx playwright test'. Could you help to run without debug mode?
Many thanks

trungtran-tmei
Автор

In playwright any option for explicit wait

sritharanperumal