I am trying to get every title from every post into text form. Every text is contained in a h3 tag and I was trying to get the title that way to no avail.
Here is what I have so far.
public void runBrowser()
{
IWebDriver driver = new ChromeDriver();
driver.Url = "https://www.reddit.com/r/nintendoSwitch/";
string finalText = driver.FindElement(By.TagName("h3")).Text;
Console.WriteLine(final);
}
I have tried using Xpath but also was met with no results. If anyone could help that would be great