Reputation: 53
I.attachFile('input[type=file]', 'test.txt');
I try attachFile function in codeceptjs/protractor. I getthis error.
TypeError: driver.execute is not a function
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,
Upvotes: 0
Views: 1713
Reputation: 1
The syntax is right but you have to select the button in the first parameter not the field
I.attachFile('button','test.txt')
Upvotes: 0