Created
June 6, 2015 11:12
-
-
Save dck-jp/52ffc02a310f96d5eebd to your computer and use it in GitHub Desktop.
SHDocVwSample05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void InputText() | |
{ | |
var IE = new SHDocVw.InternetExplorer(); | |
IE.Visible = true; | |
object URL = "http://www.google.com/"; | |
IE.Navigate2(ref URL); | |
IE.Wait(); //ページ内の要素を書き換えるためには、ページが表示されるまで待つ必要あり | |
var doc = IE.Document as mshtml.IHTMLDocument3; | |
doc.getElementById("lst-ib").innerText = "ぐるぐる"; //id:lst-ib 検索ボックス | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment