c# - How to get Title from Browser Tab? -


I have to get the title from the browser tab and store it in string variable. I am working on the Rororax Automation Tool and using C # as my scripting language.

Thanks, Monitored

Maybe something like this !! ??

  Using the system; Using System.Collections.Generic; Using System.Linq; Using System.Text; System usage threading. Task; Using System.IO; Using System.Text.RegularExpressions; Using System.Web.Http; Using System.Web; Namespace HTMLConsoleRead1._0 {Class Program {Static Zero Main (string [] ARG) {string htmlTitle = File.ReadAllText ("masterHTML.html"); Console.WriteLine (GetTitle (htmlTitle)); Console.ReadLine (); } Fixed string GetTitle (string file) {match match = reggae. Match (file, @ "& lt; title & gt; \ s * (. +?) \ S * & lt; / title & gt;"); If (match. Success) {return match. group 1]. value; } Other {return ""; }}}  

}


Comments