CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

I.attachfile function not working after implementing SmartWait in codecept.json

Open ninpop25 opened this issue 9 years ago • 9 comments

What are you trying to achieve?

I implemented SmartWait in my codecept.json file like below. I applied SmartWait in my Codecept.json like below , but the issue is that after implementing it I.attachfile function [I.attachFile("input.dz-hidden-input","TestForms.xsn");] is not working.

"WebDriverIO": { "url": "https://formsviewertest.azurewebsites.net", "browser": "chrome", "windowSize":"maximize", "restart": "true", "smartWait": 90000, "timeouts": { "script": 90000, "page load": 90000, "implicit": 90000, "explicit": 90000 } },

What do you get instead?

After this I.attachfile [I.attachFile("input.dz-hidden-input","TestForms.xsn");] is not working.

Provide console output if related. Use --verbose mode for more details.

# paste output here
 ESOCKETTIMEDOUT

Scenario Steps:

Provide test source code if related

// paste test

Details

  • CodeceptJS version:
  • NodeJS Version:
  • Operating System:
  • Protractor || WebDriverIO || Nightmare version (if related)
  • Configuration file:
# paste suite config here

Note : nothing happens and code is stuck

Sorry I need some time to reproduce and investigate it.

DavertMik avatar Oct 03 '17 11:10 DavertMik

@DavertMik : thanks for replying :)

I will be waiting for your response with solution as I am stuck on this issue and not able to move ahead in my project

ninpop25 avatar Oct 03 '17 13:10 ninpop25

@DavertMik : did you found any solution to issue that I described?

ninpop25 avatar Oct 08 '17 14:10 ninpop25

@APshenkin : please look into this issue asap @DavertMik : did you find any solution to it?

ninpop25 avatar Oct 11 '17 12:10 ninpop25

@DavertMik @APshenkin : is there a way to get rid of this issue?

ninpop25 avatar Feb 03 '18 07:02 ninpop25

+1

akshay-agrawal04 avatar Apr 02 '18 08:04 akshay-agrawal04

+1

nsm1363 avatar Apr 02 '18 09:04 nsm1363

+1

BrunoExterckotter avatar Apr 10 '18 22:04 BrunoExterckotter

Could anybody give a code example for failing test? I cannot reproduce it on google search by image. File could be attached by I.attachFile("//input[@type='file']", "kitty.jpg");

Cannot find "input.dz-hidden-input" on "https://formsviewertest.azurewebsites.net" from issue code

elukoyanov avatar Jun 16 '18 13:06 elukoyanov