diff --git a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/DesignTimeBuild/.dtbcache.v2 b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/DesignTimeBuild/.dtbcache.v2
index fd00e6d..74ecd2f 100644
Binary files a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/DesignTimeBuild/.dtbcache.v2 and b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/9e517ee5-432f-4784-b6ae-1e1fc1773755.vsidx b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/9e517ee5-432f-4784-b6ae-1e1fc1773755.vsidx
deleted file mode 100644
index b2b1f46..0000000
Binary files a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/9e517ee5-432f-4784-b6ae-1e1fc1773755.vsidx and /dev/null differ
diff --git a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/e5143ea7-cd09-46ad-9be0-bf89065d09c5.vsidx b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/e5143ea7-cd09-46ad-9be0-bf89065d09c5.vsidx
new file mode 100644
index 0000000..7e190af
Binary files /dev/null and b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/FileContentIndex/e5143ea7-cd09-46ad-9be0-bf89065d09c5.vsidx differ
diff --git a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/v17/.suo b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/v17/.suo
index 59d3ae9..9d1bdaf 100644
Binary files a/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/v17/.suo and b/PlaywrightDotNetDemo/.vs/PlaywrightDotNetDemo/v17/.suo differ
diff --git a/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.metadata.v5.2 b/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.metadata.v5.2
index 23dc1e0..b74cf13 100644
Binary files a/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.metadata.v5.2 and b/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.metadata.v5.2 differ
diff --git a/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.projects.v5.2 b/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.projects.v5.2
index 7c9e2e7..1f7e039 100644
Binary files a/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.projects.v5.2 and b/PlaywrightDotNetDemo/.vs/ProjectEvaluation/playwrightdotnetdemo.projects.v5.2 differ
diff --git a/PlaywrightDotNetDemo/UnitTest1.cs b/PlaywrightDotNetDemo/UnitTest1.cs
index 1025df1..55e3940 100644
--- a/PlaywrightDotNetDemo/UnitTest1.cs
+++ b/PlaywrightDotNetDemo/UnitTest1.cs
@@ -1,38 +1,28 @@
using Microsoft.Playwright;
+using Microsoft.Playwright.NUnit;
using NUnit.Framework;
namespace PlaywrightDotNetDemo;
-public class Tests
+public class NunitPlaywright : PageTest
{
[SetUp]
- public void Setup()
+ public async Task Setup()
{
+ await Page.GotoAsync("http://eaapp.somee.com");
}
[Test]
public async Task Test1()
{
- // Launch Settings
- var launchSettings = new BrowserTypeLaunchOptions
- {
- Headless = false,
- };
+ await Page.ClickAsync("text=Login");
- // Playwright
- using var playwright = await Playwright.CreateAsync();
- // Browser
- await using var browser = await playwright.Chromium.LaunchAsync(launchSettings);
- // Page
- var page = await browser.NewPageAsync();
+ await Page.FillAsync("#UserName", "admin");
+ await Page.FillAsync("#Password", "password");
+ await Page.ClickAsync("text=Log in");
- await page.GotoAsync("http://eaapp.somee.com");
- await page.ClickAsync("text=Login");
-
- await page.ScreenshotAsync(new PageScreenshotOptions
- {
- Path = "EAapp.jpg"
- });
+ await Expect(Page.Locator("text='Employee Details'")).ToBeVisibleAsync();
}
+
}
\ No newline at end of file
diff --git a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.deps.json b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.deps.json
index 43a942a..4ad6cc2 100644
--- a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.deps.json
+++ b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.deps.json
@@ -370,12 +370,6 @@
"System.Text.Json/7.0.3": {
"dependencies": {
"System.Text.Encodings.Web": "7.0.0"
- },
- "runtime": {
- "lib/net7.0/System.Text.Json.dll": {
- "assemblyVersion": "7.0.0.0",
- "fileVersion": "7.0.723.27404"
- }
}
}
}
diff --git a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.dll b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.dll
index 4c1a9e8..caed1f7 100644
Binary files a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.dll and b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.dll differ
diff --git a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.pdb b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.pdb
index 8502ada..1d0b8ca 100644
Binary files a/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.pdb and b/PlaywrightDotNetDemo/bin/Debug/net7.0/PlaywrightDotNetDemo.pdb differ
diff --git a/PlaywrightDotNetDemo/bin/Debug/net7.0/System.Text.Json.dll b/PlaywrightDotNetDemo/bin/Debug/net7.0/System.Text.Json.dll
deleted file mode 100644
index 0e79067..0000000
Binary files a/PlaywrightDotNetDemo/bin/Debug/net7.0/System.Text.Json.dll and /dev/null differ
diff --git a/PlaywrightDotNetDemo/bin/Debug/net7.0/nunit_random_seed.tmp b/PlaywrightDotNetDemo/bin/Debug/net7.0/nunit_random_seed.tmp
index 7c6771b..5494b33 100644
--- a/PlaywrightDotNetDemo/bin/Debug/net7.0/nunit_random_seed.tmp
+++ b/PlaywrightDotNetDemo/bin/Debug/net7.0/nunit_random_seed.tmp
@@ -1 +1 @@
-593456585
\ No newline at end of file
+297669024
\ No newline at end of file
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.AssemblyReference.cache b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.AssemblyReference.cache
index 5ce00d3..66b77a3 100644
Binary files a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.AssemblyReference.cache and b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.AssemblyReference.cache differ
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.CoreCompileInputs.cache b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.CoreCompileInputs.cache
index 87749c5..17bd4df 100644
--- a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.CoreCompileInputs.cache
+++ b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-eb91f97af1d018bd621125691c2f4d4b6b58c683
+744970be6cb4cee776ad8f6a61ff4b0a447a00d23f2ad2682d852e2a2e265374
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.FileListAbsolute.txt b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.FileListAbsolute.txt
index f49cad8..b80a93b 100644
--- a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.FileListAbsolute.txt
+++ b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.csproj.FileListAbsolute.txt
@@ -323,7 +323,6 @@ D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\Newtonsoft.Json.dll
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\NuGet.Frameworks.dll
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\nunit.framework.dll
-D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\System.Text.Json.dll
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\cs\Microsoft.TestPlatform.CoreUtilities.resources.dll
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\cs\Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
D:\Repos\Code\Playwright\Playwright_DotNet\PlaywrightDotNetDemo\bin\Debug\net7.0\de\Microsoft.TestPlatform.CoreUtilities.resources.dll
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.dll b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.dll
index 4c1a9e8..caed1f7 100644
Binary files a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.dll and b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.dll differ
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.genruntimeconfig.cache b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.genruntimeconfig.cache
index 25e9369..151cc12 100644
--- a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.genruntimeconfig.cache
+++ b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.genruntimeconfig.cache
@@ -1 +1 @@
-540fa3584d1dbd256ddeec0161dcfcb9997e32cf
+490fc1587a314ff5fc874c5815aa1b3fdaad133c04120a7537628d7868d757bb
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.pdb b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.pdb
index 8502ada..1d0b8ca 100644
Binary files a/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.pdb and b/PlaywrightDotNetDemo/obj/Debug/net7.0/PlaywrightDotNetDemo.pdb differ
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/ref/PlaywrightDotNetDemo.dll b/PlaywrightDotNetDemo/obj/Debug/net7.0/ref/PlaywrightDotNetDemo.dll
index 12ec5b2..cef32fc 100644
Binary files a/PlaywrightDotNetDemo/obj/Debug/net7.0/ref/PlaywrightDotNetDemo.dll and b/PlaywrightDotNetDemo/obj/Debug/net7.0/ref/PlaywrightDotNetDemo.dll differ
diff --git a/PlaywrightDotNetDemo/obj/Debug/net7.0/refint/PlaywrightDotNetDemo.dll b/PlaywrightDotNetDemo/obj/Debug/net7.0/refint/PlaywrightDotNetDemo.dll
index 12ec5b2..cef32fc 100644
Binary files a/PlaywrightDotNetDemo/obj/Debug/net7.0/refint/PlaywrightDotNetDemo.dll and b/PlaywrightDotNetDemo/obj/Debug/net7.0/refint/PlaywrightDotNetDemo.dll differ
diff --git a/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.dgspec.json b/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.dgspec.json
index 3d94223..b74b5c7 100644
--- a/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.dgspec.json
+++ b/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.dgspec.json
@@ -39,6 +39,9 @@
"warnAsError": [
"NU1605"
]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "default"
}
},
"frameworks": {
@@ -81,12 +84,26 @@
],
"assetTargetFallback": true,
"warn": true,
+ "downloadDependencies": [
+ {
+ "name": "Microsoft.AspNetCore.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ },
+ {
+ "name": "Microsoft.NETCore.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ },
+ {
+ "name": "Microsoft.WindowsDesktop.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ }
+ ],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.102\\RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100-preview.7.23376.3\\RuntimeIdentifierGraph.json"
}
}
}
diff --git a/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.g.props b/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.g.props
index 8b1d620..92ecffb 100644
--- a/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.g.props
+++ b/PlaywrightDotNetDemo/obj/PlaywrightDotNetDemo.csproj.nuget.g.props
@@ -7,7 +7,7 @@
$(UserProfile)\.nuget\packages\
D:\Users\Kira\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages
PackageReference
- 6.4.0
+ 6.8.0
diff --git a/PlaywrightDotNetDemo/obj/project.assets.json b/PlaywrightDotNetDemo/obj/project.assets.json
index 1c068b0..6eb925b 100644
--- a/PlaywrightDotNetDemo/obj/project.assets.json
+++ b/PlaywrightDotNetDemo/obj/project.assets.json
@@ -1706,6 +1706,9 @@
"warnAsError": [
"NU1605"
]
+ },
+ "restoreAuditProperties": {
+ "enableAudit": "default"
}
},
"frameworks": {
@@ -1748,12 +1751,26 @@
],
"assetTargetFallback": true,
"warn": true,
+ "downloadDependencies": [
+ {
+ "name": "Microsoft.AspNetCore.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ },
+ {
+ "name": "Microsoft.NETCore.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ },
+ {
+ "name": "Microsoft.WindowsDesktop.App.Ref",
+ "version": "[7.0.9, 7.0.9]"
+ }
+ ],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
- "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.102\\RuntimeIdentifierGraph.json"
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100-preview.7.23376.3\\RuntimeIdentifierGraph.json"
}
}
}
diff --git a/PlaywrightDotNetDemo/obj/project.nuget.cache b/PlaywrightDotNetDemo/obj/project.nuget.cache
index d553a9e..68efce8 100644
--- a/PlaywrightDotNetDemo/obj/project.nuget.cache
+++ b/PlaywrightDotNetDemo/obj/project.nuget.cache
@@ -1,6 +1,6 @@
{
"version": 2,
- "dgSpecHash": "U1x+SN4bnyXXcHeQTViSuNBaJmxAD5iBY66IwVDfx4wUNjHSb3ycRXEoTFHSyJZl0DEYHwoPeeGgjSYT5AbBxg==",
+ "dgSpecHash": "2g4DAgnxfvvqOZso+89Kzi0frz4JLJDfJ12izZN8wua2hn+kr4gZ477Vs1ccjB5IzRmm6N/3bCJ1b41YbA2rUw==",
"success": true,
"projectFilePath": "D:\\Repos\\Code\\Playwright\\Playwright_DotNet\\PlaywrightDotNetDemo\\PlaywrightDotNetDemo.csproj",
"expectedPackageFiles": [
@@ -23,7 +23,10 @@
"D:\\Users\\Kira\\.nuget\\packages\\system.componentmodel.annotations\\5.0.0\\system.componentmodel.annotations.5.0.0.nupkg.sha512",
"D:\\Users\\Kira\\.nuget\\packages\\system.reflection.metadata\\1.6.0\\system.reflection.metadata.1.6.0.nupkg.sha512",
"D:\\Users\\Kira\\.nuget\\packages\\system.text.encodings.web\\7.0.0\\system.text.encodings.web.7.0.0.nupkg.sha512",
- "D:\\Users\\Kira\\.nuget\\packages\\system.text.json\\7.0.3\\system.text.json.7.0.3.nupkg.sha512"
+ "D:\\Users\\Kira\\.nuget\\packages\\system.text.json\\7.0.3\\system.text.json.7.0.3.nupkg.sha512",
+ "D:\\Users\\Kira\\.nuget\\packages\\microsoft.netcore.app.ref\\7.0.9\\microsoft.netcore.app.ref.7.0.9.nupkg.sha512",
+ "D:\\Users\\Kira\\.nuget\\packages\\microsoft.windowsdesktop.app.ref\\7.0.9\\microsoft.windowsdesktop.app.ref.7.0.9.nupkg.sha512",
+ "D:\\Users\\Kira\\.nuget\\packages\\microsoft.aspnetcore.app.ref\\7.0.9\\microsoft.aspnetcore.app.ref.7.0.9.nupkg.sha512"
],
"logs": []
}
\ No newline at end of file