Skip to content

Commit

Permalink
homework 21 done
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristinaSp committed Aug 28, 2024
1 parent 1850a46 commit 6d63337
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions NUnitTests/Lessons/25/InterfaceHomework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

public interface IMyWebDriver
{
// TODO: add methods here
void Open(string url);
void FindElement(string locator);
void Close();
}

public interface IMyWindowsWebDriver
{
// TODO: add methods here
string GetWindowsVersion();
}

public class CromeDriver // TODO: add interfaces here
public class CromeDriver : IMyWebDriver, IMyWindowsWebDriver // TODO: add interfaces here
{
public static readonly string DriverName = "Chrome";
public void Open(string url)
Expand All @@ -35,7 +37,7 @@ public string GetWindowsVersion()
}
}

public class SafariDriver // TODO: add interfaces here
public class SafariDriver : IMyWebDriver // TODO: add interfaces here
{
public static readonly string DriverName = "Safari";
public void Open(string url)
Expand All @@ -55,7 +57,7 @@ public void FindElement(string locator)

}

public class FirefoxDriver // TODO: add interfaces here
public class FirefoxDriver: IMyWebDriver, IMyWindowsWebDriver // TODO: add interfaces here
{
public static readonly string DriverName = "Firefox";

Expand Down

0 comments on commit 6d63337

Please sign in to comment.