Commit e3d2d8f9 authored by hasan  khaddour's avatar hasan khaddour

Add Solution Structure

parent 97191885

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.34601.136
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dummy.SeleniumTests", "test\Dummy.SeleniumTests\Dummy.SeleniumTests.csproj", "{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dummy.WebApp", "src\Dummy.WebApp\Dummy.WebApp.csproj", "{D2813A54-8E25-4717-BA9A-1136841CFC70}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source Code", "Source Code", "{C7744431-99CC-4DC4-8B9E-4C8990080EDC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{8DFC9025-3CCF-4C18-9DE2-FF1A01FF92AC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF}.Release|Any CPU.Build.0 = Release|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D2813A54-8E25-4717-BA9A-1136841CFC70}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{D4453780-BA9F-4FAE-9A40-A2878D4DA2FF} = {8DFC9025-3CCF-4C18-9DE2-FF1A01FF92AC}
{D2813A54-8E25-4717-BA9A-1136841CFC70} = {C7744431-99CC-4DC4-8B9E-4C8990080EDC}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6022994C-495B-4C1F-8D91-893645AA30DA}
EndGlobalSection
EndGlobal
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
using System;
namespace Dummy.WebApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="NUnit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="coverlet.collector" Version="3.0.2" />
<PackageReference Include="Selenium.WebDriver" Version="4.17.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="129.0.6668.7000" />
</ItemGroup>
</Project>
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
namespace Dummy.SeleniumTests
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void googleChromeTest()
{
var driver = new ChromeDriver();
driver
.Navigate()
.GoToUrl("https:/google.com");
IWebElement searchBox = driver.FindElement(By.Id("APjFqb"));
searchBox.SendKeys("Selenium");
searchBox.Submit();
//IWebElement button = driver.FindElement(By.Name("btnK"));
//button.Click();
Assert.IsTrue(driver.Title.Contains("Selenium"));
driver.Close();
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment