質問編集履歴

1

質問の内容不足を訂正しました。

2018/11/19 05:52

投稿

rgon
rgon

スコア9

test CHANGED
File without changes
test CHANGED
@@ -10,9 +10,17 @@
10
10
 
11
11
  ### 発生している問題・エラーメッセージ
12
12
 
13
+ ```HTML
14
+
15
+ <input class="ui-button ui-widget ui-state-default ui-corner-all" id="button1"
16
+
17
+ role="button" aria-disabled="false" onclick="return callOutPut();" type="button" value="ダウンロード">
18
+
19
+ ```
13
20
 
14
21
 
15
- <input class="ui-button ui-widget ui-state-default ui-corner-all" id="button1" role="button" aria-disabled="false" onclick="return callOutPut();" type="button" value="ダウンロード">
22
+
23
+
16
24
 
17
25
 
18
26
 
@@ -26,9 +34,41 @@
26
34
 
27
35
 
28
36
 
29
- javaScriptを呼び出せば良いのでしょうか。
37
+ ```HTML
38
+
39
+ <button tabindex="3" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"
40
+
41
+ role="button" aria-disabled="false" type="submit"><span class="ui-button-text">ログイン</span></button>
42
+
43
+ ```
30
44
 
31
45
 
46
+
47
+ これに対して
48
+
49
+ ```VBA
50
+
51
+ For Each obj In ieDoc.getElementsByTagName("span")
52
+
53
+ If obj.innerText = "ログイン" Then
54
+
55
+ obj.Click
56
+
57
+ Exit For
58
+
59
+ End If
60
+
61
+ Next
62
+
63
+ ```
64
+
65
+ このようにログインしました。
66
+
67
+
68
+
69
+ 同様にダウンロードしたく試行錯誤したのですが
70
+
71
+ 上手くいきませんでした。
32
72
 
33
73
 
34
74