我正在尝试将公司列表上传到Google Alerts,但收到以下错误:
CasperError: Errors encountered while filling form: Unable to find field element in form: FieldNotFound: setField: Invalid field ; only HTMLElement is supported
/Users/sam/Documents/Work/google-alerts-export-import/phantomjs:/platform/casper.js:837 in fillForm
/Users/sam/Documents/Work/google-alerts-export-import/phantomjs:/platform/casper.js:930 in fillSelectors
/Users/sam/Documents/Work/google-alerts-export-import/phantomjs:/code/galerts.js:229
/Users/sam/Documents/Work/google-alerts-export-import/phantomjs:/platform/casper.js:1637 in runStep
/Users/sam/Documents/Work/google-alerts-export-import/phantomjs:/platform/casper.js:414 in checkStep以下是sample.csv文件数据:
Apple;At most once a week;Blogs;English;Argentina;All results;RSS feed我是这样运行的:
casperjs galerts.js import --file=sample.csv --delete-others下面是该程序的Github:
https://github.com/jra11/google-alerts-export-import发布于 2017-05-11 05:45:40
这是由于库的版本不匹配而导致的,请降级casper。
https://stackoverflow.com/questions/42236535
复制相似问题