【发布时间】:2018-10-08 00:29:41
【问题描述】:
I.attachFile('input[type=file]', 'test.txt');
我尝试在 codeceptjs/protractor 中使用 attachFile 函数。我得到这个错误。
TypeError: driver.execute 不是函数
chromeDriver:2.33
selenium-standalone:3.7.1
codeceptJS:1.0.3
"output": "./e2e/codeceptjs_tests/reports",
"helpers": {
"Protractor": {
"url": "http://localhost:4200/",
"driver": "hosted",
"browser": "chrome",
"rootElement": "body",
"smartWait":5000,
【问题讨论】:
-
请阅读为什么是screenshot of HTML or code or error is a bad idea。考虑使用基于格式化文本的相关 HTML、代码试验和错误堆栈跟踪来更新问题。
-
你试过 I.attachFile('input[type=file]', './test.txt');
标签: selenium automated-tests codeceptjs