Made UI tweaks

This commit is contained in:
2023-05-24 08:43:03 +02:00
parent 42858f847d
commit 5c6e3c5b2b
4 changed files with 33 additions and 6 deletions
+7 -5
View File
@@ -207,7 +207,7 @@ namespace Test_Merge
// It does not matter if the feed is paused because when changing channel it autoplays
actions.SendKeys(OpenQA.Selenium.Keys.Space).Perform();
//Clicks on the settings Icon
int settingsClickTries = 0;
bool settingsClickSuccess = false;
while (settingsClickTries < 100 && !settingsClickSuccess)
@@ -230,7 +230,7 @@ namespace Test_Merge
settingsClickTries++;
}
}
if (!settingsClickSuccess)
{
Screenshot("ERROR105");
@@ -286,7 +286,7 @@ namespace Test_Merge
{
//Screenshot scrsht = ((ITakesScreenshot)Driver).GetScreenshot();
//profileriver.SetPreferencC:\Users\Moi\source\repos\Test_Merge\README.mde("layout.css.devPixelsPerPx", "1.0");
//Screenshot scrsht = Driver.GetFullPageScreenshot();
Screenshot scrsht = Driver.GetScreenshot();
@@ -309,7 +309,8 @@ namespace Test_Merge
public void Stop()
{
Ready = false;
Driver.Dispose();
if (Driver != null)
Driver.Dispose();
}
/// <summary>
/// Resets the emulation
@@ -317,7 +318,8 @@ namespace Test_Merge
public void ResetDriver()
{
Ready = false;
Driver.Dispose();
if (Driver != null)
Driver.Dispose();
Driver = null;
}
}