Getting title of the WebPage in Selenium using C#
Here is the small method that makes use of Selenium’s inbuilt functionality to get the title of any webpage
//Static class Extra
public static class Extra
{
//New single method to get the Title
public static string gettitle()
{
//Driver refers to Title - Selenium Code
string title = Driver.Title;
return title;
}
}