回答編集履歴
2
書式の改善
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
|
+
HtmlElementCollection elems = mshtml.HTMLInputElement .GetElementsByTagName("button");
|
2
|
+
|
3
|
+
|
4
|
+
|
1
|
-
foreach (HtmlElement el in ms
|
5
|
+
foreach (HtmlElement el in elems ) {
|
2
6
|
|
3
7
|
if (el.GetAttribute("type") == "submit"&& el.GetAttribute("value").Equals("ログイン"))
|
4
8
|
|
@@ -18,6 +22,4 @@
|
|
18
22
|
|
19
23
|
|
20
24
|
|
21
|
-
el.GetAttribute("type") == "button"がsubmitの間違いでした。
|
22
25
|
|
23
|
-
|
1
書式の間違い
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
foreach (HtmlElement el in mshtml) {
|
2
2
|
|
3
|
-
if (el.GetAttribute("type") == "b
|
3
|
+
if (el.GetAttribute("type") == "submit"&& el.GetAttribute("value").Equals("ログイン"))
|
4
4
|
|
5
5
|
{
|
6
6
|
|
@@ -15,3 +15,9 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
こんな感じじゃないですかね?
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
el.GetAttribute("type") == "button"がsubmitの間違いでした。
|
22
|
+
|
23
|
+
|