TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Playwright for .NET is now stable

155 pointsby Xen0bytealmost 4 years ago

9 comments

hpaavolaalmost 4 years ago
Pair Playwright with Robot Framework (<a href="https:&#x2F;&#x2F;github.com&#x2F;MarketSquare&#x2F;robotframework-browser" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;MarketSquare&#x2F;robotframework-browser</a>) and you&#x27;ll get awesome browser automation with solid reporting, good test instrumentation and support for pretty much any TA need you might have besides browser automation.
评论 #27459985 未加载
philliphaydonalmost 4 years ago
Oh, I didn&#x27;t know this existed. Definitely going to try this. I&#x27;m currently using Puppeteer Sharp (<a href="https:&#x2F;&#x2F;github.com&#x2F;hardkoded&#x2F;puppeteer-sharp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hardkoded&#x2F;puppeteer-sharp</a>) and something like:<p>&gt; await page.GotoAsync(&quot;<a href="https:&#x2F;&#x2F;playwright.dev&#x2F;dotnet&quot;);" rel="nofollow">https:&#x2F;&#x2F;playwright.dev&#x2F;dotnet&quot;);</a><p>&gt; await page.ScreenshotAsync(new PageScreenshotOptions() { Path = &quot;screenshot.png&quot; });<p>Is broken, if you have background images in CSS the screenshot happens after Page Load is completed but before all CSS images are loaded so you end up not getting backgrounds in the screenshot. The only solution is to try add a delay before taking the screen grab, and it there&#x27;s any sort of latency then the delay could result in not getting a good screenshot...
评论 #27459819 未加载
评论 #27464158 未加载
评论 #27460920 未加载
评论 #27459350 未加载
评论 #27459123 未加载
jbgreeralmost 4 years ago
For those of you wondering at home: Playwright for .NET is the official language port of Playwright, a Node.js based library to automate Chromium, Firefox and WebKit with a single API.
评论 #27463113 未加载
评论 #27460961 未加载
keithnzalmost 4 years ago
really curious about peoples experience with this compared to things like Cypress.
评论 #27459326 未加载
评论 #27459286 未加载
评论 #27459198 未加载
mastryalmost 4 years ago
Does anyone know if this can be used for effective performance testing? It’s not clear from the Playwright documentation, but I know Selenium (a similar tool) does not recommend performance testing.
评论 #27459960 未加载
评论 #27459418 未加载
wegwe33almost 4 years ago
Cool! I hate cypress so much.
sharker8almost 4 years ago
I thought it was a tool for me to use openai to generate play scripts.
siwatanejoalmost 4 years ago
What&#x27;s wrong with canopy?
callamdelaneyalmost 4 years ago
Next time I want to make my eyes bleed I&#x27;ll hit up .net