FreeScriptの練習

提供:yonewiki
2024年12月28日 (土) 20:37時点におけるYo-net (トーク | 投稿記録)による版


<freescript2></script>

<code class="language-vbnet">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</code>

<script></freescript2>

test string.