HtmlElement input = page.getHtmlElementById(id);
input.setAttribute("value", value);
webClient.getPage("file:///Users/
| //a[@id='idname'] | AタグのIDで抽出 | 
| //a[@href='/login.html'] | Aタグのリンク先で抽出 | 
| //input[@type='submit'] | type=submitのタグを取得 | 
| //input[@value='検索'] | 検索のinputタグを取得 | 
| //td[contains(.,'検索したい文字列')] | 検索したい文字列が含まれているものを取得 | 
| img[alt='ログアウト'] | altで検索 | 
| //a[text()='ログアウト']" | Aのテキストで検索 | 
| final HtmlDivision div = (HtmlDivision) page.getByXPath("//div[@name='John']").get(0); | 無理やりキャスト | 
chromeのコンソールで$x('xpath')でOK!
主にPHPバッチで利用
| クラスやID指定 | div[class=tbl-pc] | 
| 親子関係 | table tbody tr td | 
brew update brew install chromedriver
brew update brew install selenium-server-standalone brew install chromedriver
だとだめ!jarを直接実行する。
java -Dwebdriver.chrome.bin="/Applications/Google Chrome.app" -Dwebdriver.chrome.drir=/usr/local/bin/chromedriver -jar selenium-server-standalone-3.4.0.jar
しかし上記のchromedriverさえインストールできればあとはサーバー不要なのであった!