Skip to content

Commit

Permalink
Fix saturday fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
wh0o7 committed Oct 13, 2023
1 parent e68c0af commit d2f2317
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions StudentsTimetable/Services/ParseService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,15 @@ private Task ParseWeek()
_weekInterval = weekInterval;
Console.WriteLine("New interval is " + weekIntervalStr);
this._botService.SendAdminMessage(new SendMessageArgs(0, "New interval is " + weekIntervalStr));
var tempThHeaders =
driver.FindElement(
By.XPath("/html/body/div[1]/div[2]/div/div[2]/div[1]/div/div[1]/table/tbody/tr[1]"))
.FindElements(By.TagName("th"));
_thHeaders = new List<string>();
foreach (var thHeader in tempThHeaders)
{
_thHeaders.Add(new string(thHeader.Text));
}
}

var tempThHeaders = driver
.FindElement(By.XPath("/html/body/div[1]/div[2]/div/div[2]/div[1]/div/div[1]/table/tbody/tr[1]"))
.FindElements(By.TagName("th"));
_thHeaders = new List<string>();
foreach (var thHeader in tempThHeaders)
{
_thHeaders.Add(new string(thHeader.Text));
}

var table = driver.FindElements(By.XPath("/html/body/div[1]/div[2]/div/div[2]/div[1]/div/div"));
Expand Down

0 comments on commit d2f2317

Please sign in to comment.