@Deepak Puree , Welcome to Microsoft Q&A, you could try the following steps to get input value of the website.
First, you could try to use Webclient.DownloadString Method to download html string.
WebClient client = new WebClient();
string htmlstr = client.DownloadString("url");
Second, you could use regex to get the value from the html string, here is a code example you could refer to.
string text = "<input type=\"hidden\" id=\"taken\" value=\"BoboBobo\">\n<input type=\"hidden\" id=\"took\" value=\"BaboboBe\"";
Regex regex = new Regex("<input\\b.*?\\s+value\\s*=\\s*\"([^\"]*)\"");
foreach (Match match in regex.Matches(text))
{
Console.WriteLine(match.Groups[1].Value);
}
Result:
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.