Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Promise was rejected with the following reason: selector needs to be typeof string #2482

Closed
ViaMay opened this issue Nov 28, 2017 · 4 comments

Comments

@ViaMay
Copy link

ViaMay commented Nov 28, 2017

The problem

Autotests didn't work which last version WebdriverIO: 4.9.10

Environment

  • WebdriverIO version: 4.9.10
  • Node.js version: v6.9.2
  • Standalone mode or wdio testrunner: wdio
  • if wdio testrunner, running synchronous or asynchronous tests: synchronous
  • Additional wdio packages used (if applicable):

Details

After update WebdriverIO I can have error about function isVisible or waitForExist where used it for my selector:
screenshot_1

Link to Selenium/WebdriverIO logs

SongLine_Auto_tests-Webdriver_Run_Auto_test_1450.log

Code To Reproduce Issue [ Good To Have ]

Example error for test gallery image and movies add correct

Error: Promise was rejected with the following reason: selector needs to be typeof `string`     
at Page.Object.create.waitVisible.value (tests/Pages/UploadPage.js:18:52)     
at Context.<anonymous> (tests/tests/gallery.add.rename.delete.test.js:65:20)     
at new Promise (node_modules/wdio-sync/node_modules/core-js/library/modules/es6.promise.js:171:7)
at elements() - isExisting.js:46:17     
at isExisting() - waitForExist.js:67:22

UploadPage view:
screenshot_2

Maybe it is duplicate #2481

@christian-bromann
Copy link
Member

@ViaMay you need to use this.uploadFromComputerButtom.waitForExist() in there.
Join our Gitter for these kind of questions. This is not necessary an issue.

@ViaMay
Copy link
Author

ViaMay commented Nov 28, 2017

@christian-bromann still have this error
screenshot_4

@ViaMay
Copy link
Author

ViaMay commented Nov 28, 2017

yesterday all work well. Now didn't

@ViaMay
Copy link
Author

ViaMay commented Nov 28, 2017

@christian-bromann set "webdriverio": "4.9.9" - all work well
screenshot_5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants