Skip to content

Commit 94f39a4

Browse files
committed
remove obsolete refs
1 parent bdce9a8 commit 94f39a4

4 files changed

Lines changed: 1 addition & 88 deletions

File tree

SeleniumTests/BaseTest.cs

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenQA.Selenium;
1+
using OpenQA.Selenium;
22
using OpenQA.Selenium.Chrome;
33
using OpenQA.Selenium.Firefox;
44
using OpenQA.Selenium.Edge;
@@ -15,41 +15,6 @@ public abstract class BaseTest
1515
protected string Browser = Environment.GetEnvironmentVariable("TEST_BROWSER")?.ToLower() ?? "chrome";
1616
protected bool Headless = Environment.GetEnvironmentVariable("TEST_HEADLESS")?.ToLower() == "true";
1717

18-
//[OneTimeSetUp]
19-
//public void CleanDriverCache()
20-
//{
21-
// try
22-
// {
23-
// // Clean up potential cached ChromeDriver files
24-
// string[] potentialCachePaths = [
25-
// Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".cache", "selenium"),
26-
// Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "selenium-manager"),
27-
// Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "chromedriver.exe"),
28-
// Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "chromedriver-win64")
29-
// ];
30-
31-
// foreach (var path in potentialCachePaths)
32-
// {
33-
// if (Directory.Exists(path))
34-
// {
35-
// TestContext.WriteLine($"Cleaning driver cache: {path}");
36-
// // Just log, don't actually delete to prevent issues
37-
// // Directory.Delete(path, true);
38-
// }
39-
// else if (File.Exists(path))
40-
// {
41-
// TestContext.WriteLine($"Found driver file: {path}");
42-
// // File.Delete(path);
43-
// }
44-
// }
45-
// }
46-
// catch (Exception ex)
47-
// {
48-
// TestContext.WriteLine($"Warning: Failed to clean driver cache: {ex.Message}");
49-
// // Continue execution - this is just a cleanup step
50-
// }
51-
//}
52-
5318
[SetUp]
5419
public void SetUp()
5520
{

SeleniumTests/HomePageTests.cs

Lines changed: 0 additions & 36 deletions
This file was deleted.

SeleniumTests/Pages/BasePage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ public abstract class BasePage
88
protected readonly IWebDriver Driver;
99
protected readonly WebDriverWait Wait;
1010

11-
// Common elements among pages like the Nav bar
1211
protected readonly By NavHobbiesLink = By.Id("nav-hobbies");
1312

1413
protected BasePage(IWebDriver driver)

SeleniumTests/Pages/HomePage.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ namespace SeleniumTests.Pages
55
{
66
public class HomePage : BasePage
77
{
8-
private readonly By ResumeLink = By.Id("resume-download-link");
9-
private readonly By ResumeViewer = By.Id("resume-viewer");
10-
118
public HomePage(IWebDriver driver) : base(driver) { }
129

1310
// fluent method for chaining
@@ -17,18 +14,6 @@ public HomePage NavigateToHomePage(string baseUrl)
1714
return this;
1815
}
1916

20-
public bool IsResumeLinkDisplayed()
21-
{
22-
var resumeLink = Wait.Until(ExpectedConditions.ElementIsVisible(ResumeLink));
23-
return resumeLink.Displayed;
24-
}
25-
26-
public bool IsResumeViewerDisplayed()
27-
{
28-
var resumeViewer = Wait.Until(ExpectedConditions.ElementIsVisible(ResumeViewer));
29-
return resumeViewer.Displayed;
30-
}
31-
3217
public HobbiesPage NavigateToHobbies()
3318
{
3419
var hobbiesLink = Wait.Until(ExpectedConditions.ElementToBeClickable(NavHobbiesLink));

0 commit comments

Comments
 (0)