Hello Sir, I am facing issue with hooks. Video recording not generating if i use hooks. If i remove beforeEach then video recording is happening. Could you please help?
I think Playwright works differently than what shown in video BeforeAll and BeforeEach works different it's not like @BeforeTest and @BeforeMethod in Java Testng. Both works in same manner where both hooks execute for all Test. Only difference is in "BeforeEach" the instance will be updated, say you have {{page}} objects from fixture you can perform login in "BeforeEach " and you need to not to update page current instance by storing it in separate global variable you can directly call this from the test block where current instance will be in the {{page}} fixture Whereas for "BeforeAll" the current instance is not updated but it executes for all tests. I tested this in parallel mode may be for sequence it will work different. But playwright focus is only on parallel execution i don't know why the video covered hooks working in sequence mode since we don't have any use cases
Hi sir, its too helpful for me, i struggle for a day and at night i saw this video, it worked for me
Fantastically explained.. Thanks a lot Sir
You are most welcome
sir, after using hooks, suggestions stops showing after page. but if I write manually, test get pass but why the suggestions stops showing???
Hello Sir, What happens if the config file is set to parallel ? Will the hooks not work? Thank you very much!
Sir, why do we need before each and after each when we can use POM design?
hello sir, do you provide any live classes for the playwright.
Thank you so much sir. Could you do a one course to talk about the playwright fixtures? many appreciate in advance.
Hello sir, after using Hooks do multiple instances of browser will be launched? for each tests
How to use the fixture in beforeAll hook , like i want to user before all and also want to use fixture in test
Hello Sir, I am facing issue with hooks. Video recording not generating if i use hooks. If i remove beforeEach then video recording is happening. Could you please help?
Hi Sir
Please explain mocha and chai assertions
Can u please upload videos on cucumber framwework with java
I think Playwright works differently than what shown in video
BeforeAll and BeforeEach works different it's not like @BeforeTest and @BeforeMethod in Java Testng.
Both works in same manner where both hooks execute for all Test.
Only difference is in "BeforeEach" the instance will be updated, say you have {{page}} objects from fixture you can perform login in "BeforeEach " and you need to not to update page current instance by storing it in separate global variable you can directly call this from the test block where current instance will be in the {{page}} fixture
Whereas for "BeforeAll" the current instance is not updated but it executes for all tests.
I tested this in parallel mode may be for sequence it will work different. But playwright focus is only on parallel execution i don't know why the video covered hooks working in sequence mode since we don't have any use cases
super, explained in details.
Thank you