Added partial support for live feeds
This commit is contained in:
@@ -187,6 +187,18 @@ namespace TrackTrends
|
|||||||
return 104;
|
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)
|
//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
|
//Cannot use The timeout because the feed loading is not really loading so there is not event or anything
|
||||||
Thread.Sleep(5000);
|
Thread.Sleep(5000);
|
||||||
|
|||||||
@@ -355,9 +355,11 @@ namespace TrackTrends
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
MessageBox.Show(message);
|
MessageBox.Show(message);
|
||||||
|
btnRefresh.Text = "Retry";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
btnRefresh.Text = "Get a newer image";
|
||||||
pbxPreview.Image = Emulator.Screenshot();
|
pbxPreview.Image = Emulator.Screenshot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -369,7 +371,7 @@ namespace TrackTrends
|
|||||||
btnCreatZone.Enabled = true;
|
btnCreatZone.Enabled = true;
|
||||||
btnCreateWindow.Enabled = true;
|
btnCreateWindow.Enabled = true;
|
||||||
btnResetDriver.Enabled = true;
|
btnResetDriver.Enabled = true;
|
||||||
btnRefresh.Text = "Get a newer image";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Settings_FormClosing(object sender, FormClosingEventArgs e)
|
private void Settings_FormClosing(object sender, FormClosingEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user