playwright project

This commit is contained in:
Lukáš Kaňka
2023-08-24 22:18:22 +02:00
parent e31b2bd477
commit 37fc3e4933
39 changed files with 111 additions and 19 deletions

View File

@ -11,6 +11,7 @@ namespace PageObjects.PageObjects
{
// locators
IWebElement TextArea => driver.FindElement(By.Name("my-textarea"));
IWebElement SubmitBtn => driver.FindElement(By.TagName("button"));
IWebDriver driver;

View File

@ -6,10 +6,6 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Tests\" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NUnit" Version="3.13.3" />

View File

@ -1,12 +1,23 @@
using System;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tests.Common;
namespace Tests.Tests
{
internal class WebFormTests
internal class WebFormTests : TestBase
{
[Test]
public void WriteToTextAreaTest()
{
var text = Guid.NewGuid().ToString();
WebForm
.WriteTextToTextArea(text);
}
}
}