>Install Playright shows up as a picklist item when searching, but once clicked it doesn't do anything, no browser options are displayed for installation.
@@Playwrightdev It worked somewhat... I had to close VSCode, and then open a cmd in its location, and type "code ." But then the playwright installation failed, and threw many errors :( Please help i'm getting tired, nothing is working... it shows error 4048 in the VSCode terminal Meanwhile it shows "WSL is not installed, so could not detect WSL profiles" in the cmd terminal
@@error404_Not-Found Other than the update above, this guy suggested that there should be one "package.json" file and one "package.lock" file, but I had many, not just one. So that made no sense to me and he had no answer, and then I moved to selenium and eclipse, i left playright and vscode
hi,just a small doubt,present i am learning playwrite for my project,where i have good experience with selenium java, when i am learning about playwrite java, instead of driver.commands in all playwrite tutorials and also on playwrite website i am seeing only page.commands, my doubt is why we only use page.commands instead of driver.commands,thanks in advance
Playwright is fundamental different to other end-to-end testing solutions. Each of the frameworks have different APIs, function calls etc. Playwright always uses a Page instance as a representative object to interact with a "browser tab". I hope that helps!
You need our VSCode extension, see here: playwright.dev/docs/getting-started-vscode Also make sure to have a recent Node.js installed. Make sure to install the right one (by Microsoft) - if you run into any issues, feel free to file a bug or reach out to Discord: aka.ms/playwright/discord
Hello, im new to VS code and I have a few questions thought you could answer. 1. Do i need to install playwright in every folder i create? Whenever i create a new folder, i dont see them inside the test explorer. 2. Should test files should only be created in the tests folder? I created .ts files in other folders but i cant run them. 3. Whenever I rename the test file or rename the folder, I cant run them in the text explorer. So does this mean i cant rename my test scripts? Thanks.
1. I think yes, you need to npm init a new "project", and then when you launched VS code, you open folder of that new project and click the flask. I don't know about #2 and #3.
#2 - I don't think so. refer playwright.config.ts -> key "testDir: './tests'," - this is where we define where playwright will look for tests. #3 - you definitely can rename the test-files. probably if you're in UI mode, try relaunching. or refer above point to address this.
@@Playwrightdev is there anything like maven that auto configures things in vs code for playwright like we do in esclipse selenium java. This is very very very very very difficult.
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Great introductory material. I hope there is more to come :)
I hope so too!
Thank you for the good demonstration of Playwright setuping and using.
glad you enjoyed it
Simple and effective .
Nicely done, very easy to follow
Glad you liked it
Thanks for this video 🙂
Such a neat explanation
Great stuff!
Thanks!
Love it
thanks
when will you start playwright with Java Sessions?
Hello, I do not want to use TypeScript. I either want to use python instead. Can I do it on Playwright extension using VSCode
cool!!
thanks
>Install Playright shows up as a picklist item when searching, but once clicked it doesn't do anything, no browser options are displayed for installation.
Thanks for sharing. What if my playwright.config.ts does not live under the root, how should I pass the customized playwright config path?
npx playwright test --config foo/bar/playwright.config.ts
See here: playwright.dev/docs/test-cli#reference
Will playwright extensions support JAVA .. ??
Hi, can anyone suggest to me whether we can use the playwright to automate the Pega application
Unable to see anything in test explorer...
Get latest VS code, click the flask icon.
@@dknc-be8dvPlease help, i have same issue.... what does flask icon do? It just showed option to install additional test extensions...
Please help... I click "Test:Install Playwright" but nothing happens after that, I do not see firefox, webdriver chromium, anything...
Please file an issue on GitHub, thanks!
@@Playwrightdev It worked somewhat... I had to close VSCode, and then open a cmd in its location, and type "code ."
But then the playwright installation failed, and threw many errors :(
Please help i'm getting tired, nothing is working... it shows error 4048 in the VSCode terminal
Meanwhile it shows "WSL is not installed, so could not detect WSL profiles" in the cmd terminal
i have the same issue. Do you resolved it?
@@error404_Not-Found Other than the update above, this guy suggested that there should be one "package.json" file and one "package.lock" file, but I had many, not just one.
So that made no sense to me and he had no answer, and then I moved to selenium and eclipse, i left playright and vscode
@@error404_Not-Found If i had to guess, the system environment and path variables were not setup correctly...
hello - how to choose chrome or Edge after selecting chromium?
ok, I got it can be done in cofig file
hi,just a small doubt,present i am learning playwrite for my project,where i have good experience with selenium java, when i am learning about playwrite java, instead of driver.commands in all playwrite tutorials and also on playwrite website i am seeing only page.commands, my doubt is why we only use page.commands instead of driver.commands,thanks in advance
Playwright is fundamental different to other end-to-end testing solutions. Each of the frameworks have different APIs, function calls etc. Playwright always uses a Page instance as a representative object to interact with a "browser tab". I hope that helps!
@@Playwrightdev thank you for the reply :)
How to get the green triangle right there 4:53
Has 8 extensions installed, shows 1. Cool.
I finally give up with this
You need our VSCode extension, see here: playwright.dev/docs/getting-started-vscode
Also make sure to have a recent Node.js installed.
Make sure to install the right one (by Microsoft) - if you run into any issues, feel free to file a bug or reach out to Discord: aka.ms/playwright/discord
@@Playwrightdev I installed it and I don't see the green triangles either
Finally got it after updating to the latest VSCode
Hello, im new to VS code and I have a few questions thought you could answer.
1. Do i need to install playwright in every folder i create? Whenever i create a new folder, i dont see them inside the test explorer.
2. Should test files should only be created in the tests folder? I created .ts files in other folders but i cant run them.
3. Whenever I rename the test file or rename the folder, I cant run them in the text explorer. So does this mean i cant rename my test scripts?
Thanks.
1. I think yes, you need to npm init a new "project", and then when you launched VS code, you open folder of that new project and click the flask. I don't know about #2 and #3.
#2 - I don't think so. refer playwright.config.ts -> key "testDir: './tests'," - this is where we define where playwright will look for tests.
#3 - you definitely can rename the test-files. probably if you're in UI mode, try relaunching. or refer above point to address this.
I need help!
I didn't find any PLAYWRIGHT drop down at left down corner
We recommend joining our Discord or filing an issue on GitHub:
- aka.ms/playwright/discord
- github.com/microsoft/playwright
You have to click on the flask icon on the vs code left sidebar, then the dropdown for testing options reveal.
Can we test components (Vue, React, ...) in isolation?
yes, component testing is in beta : playwright.dev/docs/test-components
What about java bindings
How we can work playwright with java?
Check out the Java docs for that: playwright.dev/java/
@@Playwrightdev thank you sharing that
I was looking for how we can use java binding with playwright in vscode
when will you start playwright with Java
It is not asking me which browser to install.
In VS code by default it has all of them checked but you can uncheck the ones you want. see this guide: playwright.dev/docs/getting-started-vscode
@@Playwrightdev is there anything like maven that auto configures things in vs code for playwright like we do in esclipse selenium java. This is very very very very very difficult.
Come on! Thanks!!!!
You bet!
At 2:07 you mention 'yamal' file without telling us what that is. Remember we are completely new to Playwright!
I think that's when you did a npm init, it's for git hub deploy configuration. I think it can be used with DevOps also.
It's .yml file. YAML
This yaml file is for GitHub Actions, see here: playwright.dev/docs/ci-intro
npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the
name, or if a path was included, verify that the path is correct and try again.
Make sure to have Node.js installed: nodejs.org
Arghhh the light, the light...
My eyes
Hi need playwright cucumber+javascript video for reference plz, It would be helpful for my career.
🤕