Updated ReadMe to ease the installation process

This commit is contained in:
2023-03-14 11:00:02 +01:00
parent 0bdf6b2c19
commit 1b0b0ccae1
2 changed files with 12 additions and 1 deletions

View File

@@ -1 +1,10 @@
# :D
# How to deploy
So you cloned or downloaded the repo.
To use the program properly you will need to follow theses steps. (I promise one day it will have its own installer)
- Open the project in Visual Studio
- Rebuild the solution (Build -> Rebuild Solution)
- Put the file named "recoverCookiesCSV.py" that you can find in /seleniumF1Automaton/TestSelenium/ into the /seleniumF1Automaton/TestSelenium/bin/debug (or release)
- Be sure that thoses libs have been installed (Selenium.Firefox.Webdriver[0.27.0] Selenium.WebDriver[4.8.0])
- Connect to the F1TV using chrome

View File

@@ -70,6 +70,7 @@ namespace TestSelenium
Thread.Sleep(5000);
//IWebElement dataChannelButton = driver.FindElement(By.ClassName("btn btn-link d-flex align-items-center data-button"));
//If an error shows up here, you might have forgotten to connect with your credentials in chrome to the f1tv
IWebElement dataChannelButton = driver.FindElement(By.ClassName("data-button"));
dataChannelButton.Click();
@@ -122,6 +123,7 @@ namespace TestSelenium
RunCookieRetrieval();
string value = "";
List<Cookie> cookies = new List<Cookie>();
//If this crashes it might mean that the python script did not execute well. This could use some error handling
using (var reader = new StreamReader("cookies.csv"))
{
// Read the header row and validate column order