I'm written a test which i'm now trying to enhance and make it do more things.
I understand how to find a title of a webpage by using the following code
String title = webDriver.Title;
But if i now want to also output the header of the page how would i go about doing this? This is the web URL: https://energy.gocompare.com/gas-electricity#/ I've found the element: Switch today and save on your energy bills
Can i use an XPath to find this? then Console.WriteLine the output?