AppleScriptかSwiftを使ってブラウザまたはWebViewで表示している中身を取得したいのですが、やりかたがよくわかりません
AppleScript
1 tell application "/Applications/Google Chrome.app" 2 tell window 1 3 tell active tab 4 set str to execute javascript "document.body;" 5 end tell 6 end tell 7 end tell
または?
AppleScript
1 tell application "/Applications/Google Chrome.app" 2 tell window 1 3 tell active tab 4 set str to execute javascript "document.getElementsByTagName('body');" 5 end tell 6 end tell 7 end tell

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/20 08:47
2017/04/20 08:48