www.irctc.co.in を介してチケット予約のプロセスを自動化しています。今まではログインできました..しかし、次のフォームでチケットの詳細を指定するときに、旅行日フィールド (テキスト ボックス付きのカレンダー) を設定できません。価値..
私はこれを試しました
wb.Document.GetElementById("stationFrom").SetAttribute("value", "testStation");
wb.Document.GetElementById("stationTo").SetAttribute("value","testagain");
wb.Document.GetElementById("JDatee1").InvokeMember("onfocus");
wb.Document.GetElementById("JDatee1").SetAttribute("value", "05/31/2012");
wb.Document.GetElementById("JDatee1").SetAttribute("CurrentDate", "31");
wb.Document.GetElementById("JDatee1").SetAttribute("CurrentMonth", "05");
wb.Document.GetElementById("JDatee1").SetAttribute("CurrentYear", "2012");
wb.Document.GetElementById("JDatee1").InvokeMember("onblur");
But after submitting form, date field gets the today's date..
Rest of the field I am able to fill..