Closed nair-sumesh closed 2 years ago
the command itself is syntactically correct (browser.goTo({ sHash: '#Shell-home' })
)
might be a problem with your configuration.
can you share your wdio.config.(j|t)s
-file please? "baseUrl
" and the "wdi5
" should be sufficient.
wdi5: {
screenshotPath: path.join('wdio-ui5-service', 'test', 'report', 'screenshots'),
logLevel: 'verbose', // error | verbose | silent
platform: 'browser', // electron, browser, android, ios
url: '',
skipInjectUI5OnStart: true,
deviceType: 'web',
waitForUI5Timeout: 15000
},
...
baseUrl :''
Later in the before() method, I call await browser.url(sURL); where sURL is dynamically generated.
oi, the empty baseUrl
is most likely the culprit. Try providing that, please
Describe the bug
browser.goTo
does not navigate to Shell-homeTo Reproduce async iNavigateToHomePage() { await browser.goTo({ sHash: '#Shell-home' }); }
Expected behavior Supposed to Navigate to the shell home (Fiori launchpad page)
Logs/Console Output
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 0.8.2UI5
version: [1.99.0-SNAPSHOT]wdio
-version (output ofwdio --version
): 7.16.15node
-version (output ofnode --version
): 16.13.2