Questions tagged [playwright-dotnet]

75 questions
0
votes
1 answer

Playwright timezone in Docker

I'm running Playwright code in a Docker container on my Raspberry Pi. After taking a screenshot with Playwright, I noticed that the browser's timezone seems to be GMT instead of my local timezone CEST. When running date on my Raspi, it…
mu88
  • 4,156
  • 1
  • 23
  • 47
0
votes
2 answers

Execute Playwright not via test runner

I've written a Playwright test but instead of running it via the test runner (NUnit), I'd like to run my Playwright code either from a console application or an ASP.NET Core background service. What is the easiest way to setup Playwright so that it…
mu88
  • 4,156
  • 1
  • 23
  • 47
0
votes
1 answer

Playwright C# - finding an element in an iframe and out of an iframe

I'm new-ish to C# and SO, please let me know if I can improve anything. We're following the page object model and I have a page that I need to use inside and out of an iframe. It looks like this at the moment: public class MyPage { protected…
Bentimus
  • 13
  • 4
0
votes
0 answers

Monitoring all HTTP requests and responses during E2E tests in Playwright and NUnit on .NET

I recently migrated from Selenium/Java to Playwright with NUnit on .NET for work, and I'm trying to monitor all HTTP requests & responses for each of my E2E tests, and if any requests time out with a 408 code I need the page to refresh. I have this…
jvu
  • 1
  • 1
0
votes
1 answer

Playwright VS Code Windows install not creating files/folders

When I follow the process here: https://playwright.dev/docs/getting-started-vscode#installation It doesn't seem to do anything - even though VS Code is running with Elevated privileges. I had previously followed the steps here and everything seemed…
Bleak Morn
  • 139
  • 1
  • 9
0
votes
0 answers

How to automate google address suggestion bar with playwright

Why is the google address suggestions not showing when automating using playwright or selenium. After typing in the google address bar the suggestions do not show. They only show when I assist manually ,that's the only time line 2 will…
Masande
  • 1
  • 1
0
votes
1 answer

How to get the text that was inputted by a user in a text box using Playwright for C#

I am using Playwright in C#. I have a text box: In my Playwright test, I need to check to see if the name populating the text box is equal to the string "firstName". This is what I have tried…
Dusty Shaw
  • 38
  • 6
0
votes
1 answer

How to record a trace in Playwright with .NET?

I'm starting out with using Playwright to test a Blazor application. It seems that the test project has to be running before testing starts so I've put the test project in a separate solution. So far I have successfully used the codegen facility to…
CrispinH
  • 1,899
  • 4
  • 23
  • 38
0
votes
0 answers

I am working on understanding Playwright and am having problems with Syncfusions SFGrid Control

I am trying to create a test that will allow me to manipulate a SFGrid control. I have done this before in Selenium but it was complex and when I tried to manipulate the gird, Managing state was an issue. I was hoping that playwrite with it's…
Malcolm
  • 1
  • 1
0
votes
0 answers

Finding a button on page using Playwright

I am trying to find a button on page following the documentation here https://playwright.dev/dotnet/docs/locators#locating-elements The issue is the button will show the size of the file "Download (300KB)" and under testing it cannot find the button…
fom
  • 1
  • 2
0
votes
0 answers

Playwright - .net - Maximize Browser

How to config runsettings to maximize the browser window using Playwright.I tried below code but the browser is not maximized to full mode.
cyq
  • 1
0
votes
0 answers

Playwright test is failing occasionally when I'm trying to test whether the textbox is on focus

I have the following test: namespace RazorSharp.Pages; using Microsoft.Playwright; using Xunit; public class TextBoxPageTests : IClassFixture { private readonly string _serverAddress; public…
iam3yal
  • 2,188
  • 4
  • 35
  • 44
0
votes
0 answers

My Specflow Playwright test step is switching to next step before completing first step method during debugging

I am writing a specflow+playwright+xunit test framework where my test step in feature file is like below. Given I launch web app And I entered and and click submit When I select x radio for option for second step the…
shashank shekhar
  • 155
  • 3
  • 16
0
votes
1 answer

C# PlayWright - Getting the value of element /dt and /dd inside div

I have below structure.:
Employee Name
Sam
Employer Name
ZenS
I…
born2Learn
  • 1,253
  • 5
  • 14
  • 25
0
votes
0 answers

Why can't I use "Save as" in playwright .NET

When I connect to the browser via playwright, the shortcut ctrl + s does not work. Save as also does not work, while everything else works, such as ctrl + p. using IPlaywright playwright = await Playwright.CreateAsync(); var resp =…