diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml
index 3ea75be..b34bc20 100644
--- a/.github/workflows/dotnet.yml
+++ b/.github/workflows/dotnet.yml
@@ -35,13 +35,13 @@ jobs:
uses: browser-actions/setup-chrome@v1
with:
# Optional: do not specify to match Chrome's version
- chrome-version: '123'
+ chrome-version: '125'
- name: Setup Chrome-driver
uses: nanasess/setup-chromedriver@v2
with:
# Optional: do not specify to match Chrome's version
- chromedriver-version: '123.0.6312.122'
+ chromedriver-version: '125.0.6422.14100'
- name: Restore dependencies
run: dotnet restore $SOLUTION
diff --git a/Solution1/ClassLibrary1/Calculator.cs b/Solution1/ClassLibrary1/Calculator.cs
index e0a0583..fe0fb3f 100644
--- a/Solution1/ClassLibrary1/Calculator.cs
+++ b/Solution1/ClassLibrary1/Calculator.cs
@@ -1,4 +1,4 @@
-namespace ClassLibrary1
+namespace TestLibrary
{
public class Calculator
{
diff --git a/Solution1/ClassLibrary1/ClassLibrary1.csproj b/Solution1/ClassLibrary1/TestLibrary.csproj
similarity index 80%
rename from Solution1/ClassLibrary1/ClassLibrary1.csproj
rename to Solution1/ClassLibrary1/TestLibrary.csproj
index de66239..1ce558b 100644
--- a/Solution1/ClassLibrary1/ClassLibrary1.csproj
+++ b/Solution1/ClassLibrary1/TestLibrary.csproj
@@ -9,7 +9,6 @@
-
diff --git a/Solution1/UnitTest.sln b/Solution1/UnitTest.sln
index 9f18061..5124331 100644
--- a/Solution1/UnitTest.sln
+++ b/Solution1/UnitTest.sln
@@ -1,37 +1,37 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.1.32228.430
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{26D6D1D3-EC61-491B-A460-264E3AB6C143}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTestProject", "UnitTestProject\UnitTestProject.csproj", "{E1317B48-A1F1-4C66-A546-465BB0FB92AE}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestRWCore", "TestRWCore\TestRWCore.csproj", "{9989925A-0944-43F3-BD45-EFA7A401C671}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Release|Any CPU.Build.0 = Release|Any CPU
- {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Release|Any CPU.Build.0 = Release|Any CPU
- {9989925A-0944-43F3-BD45-EFA7A401C671}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9989925A-0944-43F3-BD45-EFA7A401C671}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9989925A-0944-43F3-BD45-EFA7A401C671}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9989925A-0944-43F3-BD45-EFA7A401C671}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {C0F12B39-1122-4D6D-B50B-AE623BABC56F}
- EndGlobalSection
-EndGlobal
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32228.430
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestLibrary", "ClassLibrary1\TestLibrary.csproj", "{26D6D1D3-EC61-491B-A460-264E3AB6C143}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nUnitTestProject", "UnitTestProject\nUnitTestProject.csproj", "{E1317B48-A1F1-4C66-A546-465BB0FB92AE}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestRWCore", "TestRWCore\TestRWCore.csproj", "{9989925A-0944-43F3-BD45-EFA7A401C671}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {26D6D1D3-EC61-491B-A460-264E3AB6C143}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E1317B48-A1F1-4C66-A546-465BB0FB92AE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9989925A-0944-43F3-BD45-EFA7A401C671}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9989925A-0944-43F3-BD45-EFA7A401C671}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9989925A-0944-43F3-BD45-EFA7A401C671}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9989925A-0944-43F3-BD45-EFA7A401C671}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {C0F12B39-1122-4D6D-B50B-AE623BABC56F}
+ EndGlobalSection
+EndGlobal
diff --git a/Solution1/UnitTestProject/ChromeTest.cs b/Solution1/UnitTestProject/TestChrome.cs
similarity index 60%
rename from Solution1/UnitTestProject/ChromeTest.cs
rename to Solution1/UnitTestProject/TestChrome.cs
index 8b49495..151bdca 100644
--- a/Solution1/UnitTestProject/ChromeTest.cs
+++ b/Solution1/UnitTestProject/TestChrome.cs
@@ -1,43 +1,48 @@
using System;
-using ClassLibrary1;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace UnitTestProject
{
- public class ChromeTest
+ public class TestChrome
{
- Calculator calculator;
[SetUp]
public void Setup()
{
- calculator = new Calculator();
+ //
+ }
+ [TearDown]
+ public void TearDown()
+ {
+ //
}
[Test]
- public void startBrowser()
+ public void goItalle()
{
var chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("headless");
var driver = new ChromeDriver(chromeOptions);
- Console.WriteLine("start2");
+ Console.WriteLine("open rw.italle.dk");
driver.Navigate().GoToUrl("https://rw.italle.dk");
Console.WriteLine(driver.Title);
driver.FindElement(By.Name("username")).SendKeys("fang");
+ Assert.AreEqual(driver.Title, "HB System Login");
driver.Quit();
}
[Test]
- public void goWish()
+ public void goSoonr()
{
var chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("headless");
var driver = new ChromeDriver(chromeOptions);
- Console.WriteLine("start2");
- driver.Navigate().GoToUrl("https://onskeskyen.dk/da");
+ Console.WriteLine("open workplace");
+ driver.Navigate().GoToUrl("https://us.workplace.datto.com/login");
Console.WriteLine(driver.Title);
- //driver.FindElement(By.Name("username")).SendKeys("fang");
+ driver.FindElement(By.Name("userName")).SendKeys("fang");
+ Assert.AreEqual(driver.Title, "Workplace | Sign In");
driver.Quit();
}
diff --git a/Solution1/UnitTestProject/UnitTest1.cs b/Solution1/UnitTestProject/TestsCalculator.cs
similarity index 96%
rename from Solution1/UnitTestProject/UnitTest1.cs
rename to Solution1/UnitTestProject/TestsCalculator.cs
index 60aa39e..2eec326 100644
--- a/Solution1/UnitTestProject/UnitTest1.cs
+++ b/Solution1/UnitTestProject/TestsCalculator.cs
@@ -1,9 +1,9 @@
-using ClassLibrary1;
+using TestLibrary;
using NUnit.Framework;
namespace UnitTestProject
{
- public class Tests
+ public class TestsCalculator
{
Calculator calculator;
diff --git a/Solution1/UnitTestProject/UnitTestProject.csproj b/Solution1/UnitTestProject/nUnitTestProject.csproj
similarity index 87%
rename from Solution1/UnitTestProject/UnitTestProject.csproj
rename to Solution1/UnitTestProject/nUnitTestProject.csproj
index 71ec89a..efc6fb3 100644
--- a/Solution1/UnitTestProject/UnitTestProject.csproj
+++ b/Solution1/UnitTestProject/nUnitTestProject.csproj
@@ -14,11 +14,11 @@
-
+
-
+