2022-08-24 06:18:08 +03:00
# <img src="/src/icon.png" height="30px"> Verify Headless Browsers
2023-02-10 01:25:22 +03:00
[![Discussions ](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true&label= )](https://github.com/orgs/VerifyTests/discussions)
2022-08-24 06:18:08 +03:00
[![Build status ](https://ci.appveyor.com/api/projects/status/n4q42hbpf32jwafg?svg=true )](https://ci.appveyor.com/project/SimonCropp/verify-headlessbrowsers)
[![NuGet Status ](https://img.shields.io/nuget/v/Verify.Playwright.svg?label=Verify.Playwright )](https://www.nuget.org/packages/Verify.Playwright/)
[![NuGet Status ](https://img.shields.io/nuget/v/Verify.Puppeteer.svg?label=Verify.Puppeteer )](https://www.nuget.org/packages/Verify.Puppeteer/)
[![NuGet Status ](https://img.shields.io/nuget/v/Verify.Selenium.svg?label=Verify.Selenium )](https://www.nuget.org/packages/Verify.Selenium/)
Extends [Verify ](https://github.com/VerifyTests/Verify ) to allow verification of Web UIs using headless browsers.
2023-09-21 15:04:55 +03:00
**See [Milestones ](../../milestones?state=closed ) for release notes.**
2022-08-24 06:18:08 +03:00
## Playwright Usage
Verification of Web UIs via [Playwright ](https://github.com/microsoft/playwright-sharp ).
### NuGet package
https://nuget.org/packages/Verify.Playwright/
### Enable
Enable VerifyPlaywright once at assembly load time:
<!-- snippet: PlaywrightEnable -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PlaywrightEnable' > < / a >
2022-08-24 06:18:08 +03:00
```cs
2023-01-09 04:51:39 +03:00
[ModuleInitializer]
public static void InitPlaywright() =>
2023-02-07 13:58:25 +03:00
VerifyPlaywright.Initialize(installPlaywright: true);
2022-08-24 06:18:08 +03:00
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/ModuleInitializer.cs#L11-L17' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightEnable' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Instantiate browser
<!-- snippet: PlaywrightBuild -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PlaywrightBuild' > < / a >
2022-08-24 06:18:08 +03:00
```cs
// wait for target server to start
await SocketWaiter.Wait(port: 5000);
2022-08-24 06:19:24 +03:00
2022-08-24 06:18:08 +03:00
playwright = await Playwright.CreateAsync();
browser = await playwright.Chromium.LaunchAsync();
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L12-L20' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightBuild' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Page test
The current page state can be verified as follows:
<!-- snippet: PlaywrightPageUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PlaywrightPageUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
await Verify(page);
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L26-L32' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightPageUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: PlaywrightTests.PageUsage.verified.html -->
< a id = 'snippet-PlaywrightTests.PageUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
<!DOCTYPE html> < html lang = "en" > < head >
< meta charset = "utf-8" >
< title > The Title< / title >
< link href = "https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css" rel = "stylesheet" >
< / head >
< body >
< div class = "jumbotron" >
< h1 class = "display-4" > The Awareness Of Relative Idealism< / h1 >
< p class = "lead" >
One hears it stated that a factor within the logical radical priority embodies the
key principles behind the best practice marginalised certification project. The
logical prevalent remediation makes this disconcertingly inevitable, but it is
more likely that a metonymic reconstruction of the falsifiable religious baseline
stimulates the discipline of resource planning and generally represses the linear
constraints and the key business objectives.
< / p >
< a id = "someId" class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a >
< / div >
2022-10-24 12:06:52 +03:00
< / body > < / html >
2022-08-24 06:18:08 +03:00
```
2022-10-24 12:06:52 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.PageUsage.verified.html#L1-L20' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightTests.PageUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[PlaywrightTests.PageUsage.01.verified.png ](/src/Tests/PlaywrightTests.PageUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/PlaywrightTests.PageUsage.verified.png" width = "400px" >
2022-08-24 06:18:08 +03:00
#### PageScreenshotOptions
<!-- snippet: PageScreenshotOptions -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PageScreenshotOptions' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
await Verify(page)
.PageScreenshotOptions(
new()
{
Quality = 50,
Type = ScreenshotType.Jpeg
});
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L38-L50' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PageScreenshotOptions' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Element test
An element can be verified as follows:
<!-- snippet: PlaywrightElementUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PlaywrightElementUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
var element = await page.QuerySelectorAsync("#someId");
2022-09-25 05:00:23 +03:00
await Verify(element!);
2022-08-24 06:18:08 +03:00
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L56-L63' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightElementUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: PlaywrightTests.ElementUsage.verified.html -->
< a id = 'snippet-PlaywrightTests.ElementUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
Learn more
```
2022-09-05 13:07:33 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.ElementUsage.verified.html#L1-L1' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightTests.ElementUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[PlaywrightTests.ElementUsage.01.verified.png ](/src/Tests/PlaywrightTests.ElementUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/PlaywrightTests.ElementUsage.verified.png" >
2022-08-24 06:18:08 +03:00
#### ElementScreenshotOptions
<!-- snippet: ElementScreenshotOptions -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-ElementScreenshotOptions' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
var element = await page.QuerySelectorAsync("#someId");
2022-09-25 05:00:23 +03:00
await Verify(element!)
2022-08-24 06:18:08 +03:00
.ElementScreenshotOptions(
new()
{
Quality = 50,
Type = ScreenshotType.Jpeg
});
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L80-L93' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-ElementScreenshotOptions' title = 'Start of snippet' > anchor< / a > < / sup >
2023-06-14 13:38:09 +03:00
<!-- endSnippet -->
### Element test using ILocator
An element can be verified as follows:
<!-- snippet: PlaywrightLocatorUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PlaywrightLocatorUsage' > < / a >
2023-06-14 13:38:09 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
var element = page.Locator("#someId");
await Verify(element);
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L68-L75' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightLocatorUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2023-06-14 13:38:09 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
<!-- snippet: PlaywrightTests.LocatorUsage.verified.html -->
< a id = 'snippet-PlaywrightTests.LocatorUsage.verified.html' > < / a >
```html
Learn more
```
< sup > < a href = '/src/Tests/PlaywrightTests.LocatorUsage.verified.html#L1-L1' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PlaywrightTests.LocatorUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
<!-- endSnippet -->
[PlaywrightTests.LocatorUsage.01.verified.png ](/src/Tests/PlaywrightTests.LocatorUsage.verified.png ):
< img src = "/src/Tests/PlaywrightTests.LocatorUsage.verified.png" >
#### LocatorScreenshotOptions
<!-- snippet: LocatorScreenshotOptions -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-LocatorScreenshotOptions' > < / a >
2023-06-14 13:38:09 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GotoAsync("http://localhost:5000");
var element = page.Locator("#someId");
await Verify(element)
.LocatorScreenshotOptions(
new()
{
Quality = 50,
Type = ScreenshotType.Jpeg
});
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/PlaywrightTests.cs#L99-L112' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-LocatorScreenshotOptions' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
## Puppeteer Usage
Verification of Web UIs via [Puppeteer ](https://github.com/hardkoded/puppeteer-sharp )
### NuGet package
https://nuget.org/packages/Verify.Puppeteer/
### Enable
Enable VerifyPuppeteer once at assembly load time:
<!-- snippet: PuppeteerEnable -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PuppeteerEnable' > < / a >
2022-08-24 06:18:08 +03:00
```cs
2023-01-09 04:51:39 +03:00
[ModuleInitializer]
public static void InitPuppeteer() =>
2023-02-07 13:58:25 +03:00
VerifyPuppeteer.Initialize();
2022-08-24 06:18:08 +03:00
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/ModuleInitializer.cs#L19-L25' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerEnable' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Instantiate browser
<!-- snippet: PuppeteerBuild -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PuppeteerBuild' > < / a >
2022-08-24 06:18:08 +03:00
```cs
// wait for target server to start
await SocketWaiter.Wait(port: 5000);
2022-08-24 06:19:24 +03:00
2024-05-21 13:49:29 +03:00
var fetcher = new BrowserFetcher(SupportedBrowser.Chrome);
await fetcher.DownloadAsync();
2022-08-24 06:19:24 +03:00
2022-08-24 06:18:08 +03:00
browser = await Puppeteer.LaunchAsync(
new()
{
Headless = true
});
```
2024-05-21 13:49:29 +03:00
< sup > < a href = '/src/Tests/PuppeteerTests.cs#L11-L25' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerBuild' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Page test
The current page state can be verified as follows:
<!-- snippet: PuppeteerPageUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PuppeteerPageUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
page.Viewport.Width = 1024;
page.Viewport.Height = 768;
await page.GoToAsync("http://localhost:5000");
await Verify(page);
```
2024-05-21 13:49:29 +03:00
< sup > < a href = '/src/Tests/PuppeteerTests.cs#L31-L39' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerPageUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: PuppeteerTests.PageUsage.verified.html -->
< a id = 'snippet-PuppeteerTests.PageUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
<!DOCTYPE html> < html lang = "en" > < head >
< meta charset = "utf-8" >
< title > The Title< / title >
< link href = "https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css" rel = "stylesheet" >
< / head >
< body >
< div class = "jumbotron" >
< h1 class = "display-4" > The Awareness Of Relative Idealism< / h1 >
< p class = "lead" >
One hears it stated that a factor within the logical radical priority embodies the
key principles behind the best practice marginalised certification project. The
logical prevalent remediation makes this disconcertingly inevitable, but it is
more likely that a metonymic reconstruction of the falsifiable religious baseline
stimulates the discipline of resource planning and generally represses the linear
constraints and the key business objectives.
< / p >
< a id = "someId" class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a >
< / div >
< / body > < / html >
```
2022-09-05 13:07:33 +03:00
< sup > < a href = '/src/Tests/PuppeteerTests.PageUsage.verified.html#L1-L20' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerTests.PageUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[PuppeteerTests.PageUsage.01.verified.png ](/src/Tests/PuppeteerTests.PageUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/PuppeteerTests.PageUsage.verified.png" width = "400px" >
2022-08-24 06:18:08 +03:00
### Element test
An element can be verified as follows:
<!-- snippet: PuppeteerElementUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-PuppeteerElementUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var page = await browser.NewPageAsync();
await page.GoToAsync("http://localhost:5000");
var element = await page.QuerySelectorAsync("#someId");
await Verify(element);
```
2024-05-21 13:49:29 +03:00
< sup > < a href = '/src/Tests/PuppeteerTests.cs#L45-L52' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerElementUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: PuppeteerTests.ElementUsage.verified.html -->
< a id = 'snippet-PuppeteerTests.ElementUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
Learn more
```
2022-09-05 13:07:33 +03:00
< sup > < a href = '/src/Tests/PuppeteerTests.ElementUsage.verified.html#L1-L1' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-PuppeteerTests.ElementUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[PuppeteerTests.ElementUsage.01.verified.png ](/src/Tests/PuppeteerTests.ElementUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/PuppeteerTests.ElementUsage.verified.png" >
2022-08-24 06:18:08 +03:00
## Selenium Usage
Verification of Web UIs via [Selenium ](https://www.selenium.dev ).
### NuGet package
https://nuget.org/packages/Verify.Selenium/
### Enable
Enable VerifySelenium once at assembly load time:
<!-- snippet: SeleniumEnable -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-SeleniumEnable' > < / a >
2022-08-24 06:18:08 +03:00
```cs
2023-01-09 04:51:39 +03:00
[ModuleInitializer]
public static void InitSelenium() =>
2023-02-07 13:58:25 +03:00
VerifySelenium.Initialize();
2022-08-24 06:18:08 +03:00
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/ModuleInitializer.cs#L3-L9' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumEnable' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Instantiate browser
<!-- snippet: SeleniumBuildDriver -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-SeleniumBuildDriver' > < / a >
2022-08-24 06:18:08 +03:00
```cs
// wait for target server to start
await SocketWaiter.Wait(port: 5000);
2022-08-24 06:19:24 +03:00
2022-08-24 06:18:08 +03:00
var options = new ChromeOptions();
options.AddArgument("--no-sandbox");
options.AddArgument("--headless");
driver = new(options);
driver.Manage().Window.Size = new(1024, 768);
driver.Navigate().GoToUrl("http://localhost:5000");
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/SeleniumTests.cs#L13-L25' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumBuildDriver' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
### Page test
The current page state can be verified as follows:
<!-- snippet: SeleniumPageUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-SeleniumPageUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
await Verify(driver);
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/SeleniumTests.cs#L31-L35' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumPageUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: SeleniumTests.PageUsage.verified.html -->
< a id = 'snippet-SeleniumTests.PageUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
< html lang = "en" > < head >
< meta charset = "utf-8" >
< title > The Title< / title >
< link href = "https://getbootstrap.com/docs/4.0/dist/css/bootstrap.min.css" rel = "stylesheet" >
< / head >
< body >
< div class = "jumbotron" >
< h1 class = "display-4" > The Awareness Of Relative Idealism< / h1 >
< p class = "lead" >
One hears it stated that a factor within the logical radical priority embodies the
key principles behind the best practice marginalised certification project. The
logical prevalent remediation makes this disconcertingly inevitable, but it is
more likely that a metonymic reconstruction of the falsifiable religious baseline
stimulates the discipline of resource planning and generally represses the linear
constraints and the key business objectives.
< / p >
< a id = "someId" class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a >
< / div >
< / body > < / html >
```
2022-09-05 13:07:33 +03:00
< sup > < a href = '/src/Tests/SeleniumTests.PageUsage.verified.html#L1-L20' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumTests.PageUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[SeleniumTests.PageUsage.01.verified.png ](/src/Tests/SeleniumTests.PageUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/SeleniumTests.PageUsage.verified.png" width = "400px" >
2022-08-24 06:18:08 +03:00
### Element test
An element can be verified as follows:
<!-- snippet: SeleniumElementUsage -->
2024-03-26 07:54:42 +03:00
< a id = 'snippet-SeleniumElementUsage' > < / a >
2022-08-24 06:18:08 +03:00
```cs
var element = driver.FindElement(By.Id("someId"));
await Verify(element);
```
2024-03-26 07:54:42 +03:00
< sup > < a href = '/src/Tests/SeleniumTests.cs#L41-L46' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumElementUsage' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
With the state of the element being rendered as a verified files:
2022-09-05 13:07:33 +03:00
<!-- snippet: SeleniumTests.ElementUsage.verified.html -->
< a id = 'snippet-SeleniumTests.ElementUsage.verified.html' > < / a >
2022-08-24 06:18:08 +03:00
```html
< a id = "someId" class = "btn btn-primary btn-lg" href = "#" role = "button" > Learn more< / a >
```
2022-09-05 13:07:33 +03:00
< sup > < a href = '/src/Tests/SeleniumTests.ElementUsage.verified.html#L1-L1' title = 'Snippet source file' > snippet source< / a > | < a href = '#snippet-SeleniumTests.ElementUsage.verified.html' title = 'Start of snippet' > anchor< / a > < / sup >
2022-08-24 06:18:08 +03:00
<!-- endSnippet -->
2022-09-05 13:07:33 +03:00
[SeleniumTests.ElementUsage.01.verified.png ](/src/Tests/SeleniumTests.ElementUsage.verified.png ):
2022-08-24 06:18:08 +03:00
2022-09-05 13:07:33 +03:00
< img src = "/src/Tests/SeleniumTests.ElementUsage.verified.png" >
2022-08-24 06:18:08 +03:00
## OS specific rendering
The rendering can very slightly between different OS versions. This can make verification on different machines (eg CI) problematic. A [custom comparer ](https://github.com/VerifyTests/Verify/blob/master/docs/comparer.md ) can to mitigate this.
## Icon
2022-08-24 06:19:24 +03:00
[Crystal ](https://thenounproject.com/term/crystal/1440050/ ) designed by [Monjin Friends ](https://thenounproject.com/monjin.friends ) from [The Noun Project ](https://thenounproject.com ).