Questions tagged [playwright-dotnet]
75 questions
0
votes
0 answers
Playwright - possible to change windows user?
My web app uses windows authentication, then grants permissions based on allowed usernames in a configuration file. Is it possible to change the windows username in a Playwright test?
Tried changing the httpCredentials in the browser context. Didn't…
0
votes
1 answer
Automate Tokens base login in Playwright. Java
Scenario : To login to the application, need to enter the username and token sent on register email id.
How can we automate above scenario in playwright using java language.
Thank you in advance.

Santosh
- 47
- 1
- 1
- 3
0
votes
1 answer
Playwright sign an electronic signature
I have a question in regards to Playwright and whether there is a way to sign an electronic signature into a canvas element using the mouse(hold and move the mouse around to simulate a signature) and of course it should be a way longer signature…

ciconq
- 201
- 1
- 2
- 11
0
votes
1 answer
ViewportSize in .runsettings?
I'm using NUnit and would like to start the browser in a custom size ViewportSize, I know that it is possible through overriding the ContextOptions() method, however I was wondering if this were to be possible by .runsettings also.
I've tried to add…

Joshmar Steffens
- 3
- 4
0
votes
0 answers
Check Url of popup page in playwright
var about = await Page.RunAndWaitForPopupAsync(async () =>
{
await Page.Locator("text=About").ClickAsync();
});
await about.WaitForLoadStateAsync();
string url = about.Url.ToString();
bool v =…

Fomnus
- 85
- 1
- 2
- 7
0
votes
1 answer
F# - Playwright return randomly result
I am using Playwright in F# for web scrapping and I noticed that result is returned randomly.
I have this code.
let getContent (url:string) =
task{
use! paywright = Playwright.CreateAsync()
let! browser = paywright.Chromium.LaunchAsync()
…

Dartos Koste
- 1
- 1
0
votes
1 answer
How do I debug Playwright tests from Visual Studio?
I'm using MSTest with Playwright in Visual Studio, and am having trouble with a selector. I want to debug using Playwright dev tools, Playwright inspector, etc. This page https://playwright.dev/docs/debug-selectors#using-playwright-inspector…

Tony Isaac
- 1,546
- 1
- 9
- 6
0
votes
1 answer
How do you get the HTML tag of the control in Playwright?
How do I get the HTML tag of a Locator?
With the following HTML element:
If I get it by the locator of
var locator =…

Greg Finzer
- 6,714
- 21
- 80
- 125
0
votes
1 answer
How to use variables in selector in Playwright C#?
So we are validating the text present in our site using the excel sheet.
for(int i = 0; i < services.Count; i++)
{
string ServiceName = ExcelFunction.getCellValue(filepath, TestContext.CurrentContext.Test.MethodName, "ServiceName", i);
…

Nalin
- 57
- 1
- 11
0
votes
1 answer
Add tasks to WhenAny asynchronously
I'm looking to listen to the result of a task(s), or timeout if the none are made or completed. Specifically, I'm using Playwright and am adding an event listener for requests and want to timeout if none of those requests include what I'm looking…

Uxonith
- 1,602
- 1
- 13
- 16
0
votes
0 answers
E2E test Code coverage for the application using Playwright in .NET
I have E2E testing using playwright in . NET core 6 application. Is there any way to get the report for code coverage.
There is a way for JS application https://playwright.dev/docs/api/class-coverage
Using the package…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
0 answers
Set User Agent in Playwright is not working
I am trying to set the user agent of playwright browser while initializing the browser context but it seems that it ignores the param I am giving and starts it with the default agent
could anyone point out what is the problem here?
version :…

Khaled Mosaad
- 1
- 2
0
votes
0 answers
How to update BDD feature file scenario result (Pass/Fail) in the excel sheet based on any tags?
C# Specflow Playwright - My lead want me to update the test case result in the excel sheet after the feature file is executed.
So in her excel sheet, she has given an unique tag (tag: test name) to each test case which I will add in each scenario…

Prateek Kumar
- 3
- 1
- 6
0
votes
1 answer
Running Playwright dotnet tests on Azure DevOps
I'm trying to execute Playwright dotnet tests with Nunit framework on Azure DevOps. I'm unable to execute testcases as and when I try to install playwright as a part of pipeline, there is an error thrown and build gets failed with the following…

agaa
- 63
- 7