TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Playwright for .NET is now stable

155 点作者 Xen0byte将近 4 年前

9 条评论

hpaavola将近 4 年前
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 未加载
philliphaydon将近 4 年前
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 未加载
jbgreer将近 4 年前
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 未加载
keithnz将近 4 年前
really curious about peoples experience with this compared to things like Cypress.
评论 #27459326 未加载
评论 #27459286 未加载
评论 #27459198 未加载
mastry将近 4 年前
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 未加载
wegwe33将近 4 年前
Cool! I hate cypress so much.
sharker8将近 4 年前
I thought it was a tool for me to use openai to generate play scripts.
siwatanejo将近 4 年前
What&#x27;s wrong with canopy?
callamdelaney将近 4 年前
Next time I want to make my eyes bleed I&#x27;ll hit up .net