Questions tagged [playwright-test]

playwright-test is the official test runner of playwright and is especially made for end-to-end testing.

329 questions
0
votes
2 answers

how to select a custome dropdown option in Playwright UI test

I am doing end to end UI testing and when I try to select an option for Harmony web UI component (), playwright is not able to recognize the custome tag and it error out saying not a select option. And I am not able to record…
yuvraj
  • 181
  • 1
  • 12
0
votes
1 answer

How click checkbox with CSS locator ::after using playwright

I have to click checkbox for term & conditions. I have used .click() and .check in my code. But when I am running the code, it's clicking on the terms & conditions and it's redirecting to another page. can you suggest any help. below is my…
BugBee
  • 113
  • 12
0
votes
1 answer

launching Theia based electron app (artifact/package) isn't working

Almost new in using playwright. Exploring the things and checking what we can do with this tool. I am trying to launch our Theia based electon app in Ubuntu 18.04 with below source. const { _electron: electron } = require('playwright'); //const {…
noor
  • 2,954
  • 2
  • 16
  • 29
0
votes
0 answers

can we integrate playwright test runner with testrail?

I want to start with playwright UI automation and I found out that the best approach is to use playwright test runner, which is inbuilt instead of Jest. But I am planning to integrate all my tests with TestRail in future. I see that there are Node…
MN-17
  • 1
  • 2
0
votes
0 answers

Uploading a file via API in Playwright (Typescript)

What: Testing the upload of a file (image) via API using Playwright In the API Docs, for the request it states: REQUEST BODY SCHEMA: multipart/form-data file (string ) A file to upload. The file should follow the specifications of RFC 2388 (which…
fyt
  • 1
  • 2
0
votes
3 answers

Looking for a Web-First assertion for asserting a dialog's message in TS

So now in Playwright, we have the list of expect assertions, which can retry up till the timeout limit is reached. Now in that list, I couldn't find anything which can just assert a text. This is my test: page.on('dialog', async (dialog) => { …
Alapan Das
  • 17,144
  • 3
  • 29
  • 52
0
votes
2 answers

Unexpected token `{` error in jenkinsfile

Im using Playwright for integration tests. But when I run it through jenkinsfile I see this error unexpected token {. Error happens at npm run test-chrome. Does anyone know what could be the issue? package.json { "name": "playwright", "version":…
Gaurav
  • 1,332
  • 11
  • 22
0
votes
0 answers

Features by Playwright Test Runner

Here is a quick question and seeking some clarifications reg the documentation provided by playwright. Here are my queries: the features mentioned under the "Playwright test" section of the documentation are available only when someone use…
Allen
  • 111
  • 1
  • 11
0
votes
1 answer

Handling test data for multiple scenarios and Environments in Playwright

does playwright have the support/ features to handle multiple test data for various scenarios and for multiple environments. Could someone point me to the right approach for handling such scenarios. scenarios: Test will be executed in multiple…
Allen
  • 111
  • 1
  • 11
0
votes
1 answer

How in Playwright get in evaluate data from arguments?

How in Playwright get in evaluate data from arguments? page.evaluate: ReferenceError: d is not defined async function testEv(d) { const data = await this.page.evaluate(function() { console.log('d from args is', d) }) }
0
votes
0 answers

How to start Playwright test with data from console?

We have command npx playwright test tests/my-test.spec.js But how to set data for this test by console? For example i need to set variables for URL (google.com) and CountOfBlocks (12)
0
votes
1 answer

Click on a value that is derived from a text file Playwright-C#

I m trying to click on value (link format) on a webpage and i read it from a separate file. the value is read correctly from the external file but I cant get the script to click on it. the first line of code reads the value correctly from the…
hm9
  • 37
  • 8
0
votes
2 answers

Playwright with Typescript, test inside a for loop is not identified by Test Runner

I'm trying to execute a test multiple times using a for loop. Playwright Testrunner is not identifying the test inside for loop. it is giving message "no tests found". Sample code. test.describe("Feature: Execute script ", async () =>…
Prasad
  • 119
  • 1
  • 5
  • 13
0
votes
1 answer

Do/While infinitely loops issue c#

I am automating interaction with a website where the user will have to refresh the pages n times manually (sometimes 3 or 5 or even longer) so that the buttons appear on the web page. To overcome this issue, I created a do / while loop that should…
hm9
  • 37
  • 8
0
votes
3 answers

Playwright: "No named projects are specified in the configuration file"

I'm in the process of migrating some test suites from Protractor to Playwright but keep getting this error when I try to run the Playwright tests with this command: npx playwright test --project=testProject Error: No named projects are specified in…
snoom
  • 1
  • 2
1 2 3
21
22