Updated the code to show on the documentation

This commit is contained in:
2023-06-08 14:30:18 +02:00
parent ac5641125a
commit a7c6ad610c
18 changed files with 321 additions and 619 deletions
+14 -2
View File
@@ -1,8 +1,8 @@
/// Author : Maxime Rohmer
/// Date : 30/05/2023
/// Date : 09/06/2023
/// File : F1TVEmulator.cs
/// Brief : Class that contains methods to emulate a browser and navigate the F1TV website
/// Version : Alpha 1.0
/// Version : Beta 1.0
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
@@ -187,6 +187,18 @@ namespace TrackTrends
return 104;
}
try
{
IWebElement LiveButton = Driver.FindElement(By.ClassName("btn-manage-account"));
//By.ClassName("btn btn-controls btn-main btn-manage-account no-redirect")
LiveButton.Click();
}
catch
{
Console.Write("Going for a rediff");
}
//Again waits for the page to fully load (when you accept cookies it takes a little time for the page to load)
//Cannot use The timeout because the feed loading is not really loading so there is not event or anything
Thread.Sleep(5000);