Testcase provided for webdriverio #7289
After creating a new repo on GitHub, it was cloned to my local machine.
I then ran the following commands:
npm init -y
npm install @wdio/cli
.\node_modules\.bin\wdio
At this point the configuration utility ran and I selected all default options. I did not have scripts generated.
I copied the test
folder and everything it contains into the hierarchy, as well as the wdio.conf.js file.
I then ran:
.\node_modules\.bin\wdio
and all tests passed
I then did:
npm install @wdio/sync
.\node_modules\.bin\wdio
and now the final test fails with the error:
SecurePage.btnSubmit.click is not a function
Here are the steps to replicate the above with this repo:
NOTE: The repo is also being used for a wdio-image-comparison-service issue, check the wdio.conf.js and make sure that only the example.e2e.js file is selected in the specs section.
- Clone the repo and open a shell in the top level fo the repo
- Run
npm install
- installs the necessary packages - Run
.\node_modules\.bin\wdio
- observe that all the tests pass - Run
npm install @wdio/sync
- install the sync package - Run
.\node_modules\.bin\wdio
- observe that the final test fails
The final test fails with the message:
SecurePage.btnSubmit.click is not a function
This demonstrates the problem being described.
Node: v14.17.5 OS: Windows 10 Version 21H1 (OS Build 19043.1165)