「FreeScriptの練習」の版間の差分
編集の要約なし タグ: 差し戻し済み |
編集の要約なし タグ: 手動差し戻し |
||
7行目: | 7行目: | ||
< | <freescript></script> | ||
<!-- | <!-- | ||
data-line-num-start="1" | data-line-num-start="1" | ||
41行目: | 41行目: | ||
End With | End With | ||
End Sub</code></pre><div> | End Sub</code></pre><div> | ||
<script></ | <script></freescript> | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
test string. | test string. | ||
</syntaxhighlight> | </syntaxhighlight> |
2024年12月28日 (土) 21:12時点における版
Public Sub グーグル検索()
Dim driver As Selenium.EdgeDriver
Set driver = New Selenium.EdgeDriver
With driver
.Start
.Get "https://www.google.com/"
.FindElementByName("q").SendKeys ("Yonewiki")
.FindElementByCss("input.gNO89b").Click '.FindElementById("btnK").Click
Debug.Print .FindElementById("search").Text
.Quit
End With
End Sub
Public Sub グーグル検索()
Dim driver As Selenium.EdgeDriver
Set driver = New Selenium.EdgeDriver
With driver
.Start
.Get "https://www.google.com/"
.FindElementByName("q").SendKeys ("Yonewiki")
.FindElementByCss("input.gNO89b").Click '.FindElementById("btnK").Click
Debug.Print .FindElementById("search").Text
.Quit
End With
End Sub
test string.