Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FriggaHel committed Mar 29, 2024
1 parent bc3fb8b commit ecd8871
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions visual-dotnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,13 @@ dotnet add package SauceLabs.Visual
- Instantiate `VisualClient` object
```csharp
var dataCenter = DataCenter.UsWest1;
var visualClient = new VisualClient(webDriver, dataCenter, "your-sauce-username", "your-sauce-access-key");
```

- Create a build
```csharp
var buildOptions = new CreateBuildOptions() { Name = "My Visual Build" };
var visualBuild = await visualClient.CreateBuild(buildOptions);
var visualClient = await VisualClient.Create(Driver, datacenter);
```

- Invoke Visual Testing
```csharp
var checkOptions = new VisualCheckOptions() { CaptureDom = true };
await visualClient.VisualCheck(visualBuild, "Home Page", checkOptions);
await visualClient.VisualCheck("Home Page", checkOptions);
```

- Get results of Visual Tests and run assertions on it
Expand Down

0 comments on commit ecd8871

Please sign in to comment.