ui5-community / wdi5

official UI5 end-to-end test framework for UI5 web-apps. wdi5 = Webdriver.IO + UI5 Test API
https://ui5-community.github.io/wdi5/
Apache License 2.0
102 stars 43 forks source link

Unable to launch browser #462

Closed diya-dhan closed 1 year ago

diya-dhan commented 1 year ago

Describe the bug I am trying to execute my tests with the command : wdio run wdio.conf.js which is in package.json as a wdio script But I keep running into the error : unknown error: net::ERR_CONNECTION_REFUSED (Session info: chrome=112.0.5615.137) And thus the app doesn't run on my browser as expected,

To Reproduce Not exactly sure how the error could be reproduced because I can't really share the source code. Let me know if you would like to have a look at the wdio config file if needed.

Expected behavior I expect the chrome browser to launch and execute my tests without any errors.

Logs/Console Output [chrome 112.0.5615.137 mac os x #0-0] unknown error: net::ERR_CONNECTION_REFUSED (Session info: chrome=112.0.5615.137) [chrome 112.0.5615.137 mac os x #0-0] unknown error: unknown error: net::ERR_CONNECTION_REFUSED [chrome 112.0.5615.137 mac os x #0-0] (Session info: chrome=112.0.5615.137) [chrome 112.0.5615.137 mac os x #0-0] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [chrome 112.0.5615.137 mac os x #0-0] at async Context. (/Users/I584814/Diya/bp-validation/cloud-extension-s4hana-business-process/app/BusinessPartners/webapp/wdi5-test/specs/firstPage.spec.js:3:9)

**Runtime Env

vobu commented 1 year ago

what port is your UI5 app running on? and does that match baseUrl your wdio.conf.js? and do you have any custom config in your wdio.conf.js for the chromedriver, specifically the port?

diya-dhan commented 1 year ago

ah yes my baseUrl was wrong :). Changed it and it works now. Thanks a lot! I'll close this issue then.