###前提・実現したいこと
nightmareJSを使用してFC2ブログにログインしたい。
###発生している問題・エラーメッセージ
FC2のログイン画面のログインボタンが反応しない。
nightmareJS上でだけではなくElectronに表示されているボタンをクリックしても反応がありません。
他のリンクやボタンは反応があります。
###該当のソースコード
const Nightmare = require('nightmare') const nightmare = Nightmare({ show: true }) nightmare .goto('https://fc2.com/login.php') .type('input#email', 'aaa') .type('input#pass', 'aaa') .click('div#login-content > form:nth-child(1) > ul:nth-child(1) > li:nth-child(5) > p.sh_login_ja:nth-child(3) > a:nth-child(1) > input:nth-child(1)') .end() .then(function (result) { console.log(result) }) .catch(function (error) { console.error('Error:', error); });
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/17 13:15