Closed jpolley closed 5 years ago
Good news, I'm just an idiot who failed to select the "selenium-standalone" service properly when going through npx wdio
setup for the first time. I hit arrow keys to highlight the service then hit <return>
thinking it was going to select what was highlighted. And that's not how it works. I needed to de-select chromedriver using <space>
and then select selenium-standalone using <space>
. When I did that 'firefox' was the default browser.
This would have all been avoided if I had simply followed the instructions you have during setup:
1.2.5 Reviewing the Standard WebdriverIO Configuration File
https://github.com/klamping/ui-testing-book/blob/35772b5af63f8aa52fbefaef03e4f133028192fa/manuscript/1.2.5%20Reviewing%20the%20Standard%20WebdriverIO%20Configuration%20File.txt#L116
I just went through the exercise using 5.13.0 and the default browser was actually Chrome. So I guess that has changed recently and you can remove the part about Firefox being default browser.
package.json:
wdio.conf.js
Or maybe this is a bug with latest version of WebdriverIO that needs to be addressed if the default is supposed to be Firefox?