Skip to content

Commit

Permalink
Merge pull request #64 from Sven-Seyfert/main
Browse files Browse the repository at this point in the history
  • Loading branch information
SabotageAndi committed Dec 23, 2021
2 parents 84db61f + c150a97 commit 1a6e921
Show file tree
Hide file tree
Showing 10 changed files with 346 additions and 521 deletions.
2 changes: 0 additions & 2 deletions Plugins/SpecFlow.Actions.Playwright/Example/Example.csproj
Expand Up @@ -15,8 +15,6 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentAssertions" Version="5.10.3" />

<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="94.0.4606.6100" />
</ItemGroup>

<ItemGroup>
Expand Down
Expand Up @@ -2,7 +2,7 @@
Feature: Calculator
![Calculator](https://specflow.org/wp-content/uploads/2020/09/calculator.png)
Simple calculator for adding **two** numbers
Link to a feature: [Calculator](CalculatorSelenium.Specs/Features/Calculator.feature)
Link to a feature: [Calculator](CalculatorPlaywright.Specs/Features/Calculator.feature)
***Further read***: **[Learn more about how to generate Living Documentation](https://docs.specflow.org/projects/specflow-livingdoc/en/latest/LivingDocGenerator/Generating-Documentation.html)**

Scenario: Add two numbers
Expand All @@ -21,4 +21,4 @@ Scenario Outline: Add two numbers permutations
| FirstNumber | SecondNumber | ExpectedResult |
| 0 | 0 | 0 |
| -1 | 10 | 9 |
| 6 | 9 | 15 |
| 6 | 9 | 15 |

This file was deleted.

5 changes: 4 additions & 1 deletion Plugins/SpecFlow.Actions.Playwright/Readme.md
Expand Up @@ -139,6 +139,9 @@ Available Helper Methods:
/// Navigates to the specified URL
public async Task GoToUrl(string url)

/// Gets the current URL
public async Task<string?> GetUrl()

/// Sends a string to the specified selector
public async Task SendTextAsync(string selector, string keys, PageFillOptions? pageFillOptions = null)

Expand Down Expand Up @@ -168,4 +171,4 @@ public async Task SelectDropdownOptionAsync(string selector, int index, PageSele

Add the latest version of the `SpecFlow.Actions.Playwright` NuGet Package to your project.

Latest version: [![Nuget](https://img.shields.io/nuget/v/SpecFlow.Actions.Playwright)](https://www.nuget.org/packages/SpecFlow.Actions.Playwright/)
Latest version: [![Nuget](https://img.shields.io/nuget/v/SpecFlow.Actions.Playwright)](https://www.nuget.org/packages/SpecFlow.Actions.Playwright/)
Expand Up @@ -5,7 +5,7 @@
namespace SpecFlow.Actions.Playwright
{
/// <summary>
/// Manages a browser instance using Selenium
/// Manages a browser instance using Playwright
/// </summary>
public class BrowserDriver : IDisposable
{
Expand Down Expand Up @@ -65,4 +65,4 @@ public void Dispose()
_isDisposed = true;
}
}
}
}

0 comments on commit 1a6e921

Please sign in to comment.