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

3.0.0-rc.0: TypeError: browserInstance.goTo is not a function #648

Open
xLexip opened this issue Oct 30, 2024 · 1 comment
Open

3.0.0-rc.0: TypeError: browserInstance.goTo is not a function #648

xLexip opened this issue Oct 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@xLexip
Copy link

xLexip commented Oct 30, 2024

To Reproduce
I have a basic test with

before(async function () {
	await wdi5.goTo({ sHash: "#/business-objects" });
});

Logs/Console Output

[...]

[firefox 134.0a1 linux #0-0] browserInstance.goTo is not a function
[firefox 134.0a1 linux #0-0] TypeError: browserInstance.goTo is not a function
[firefox 134.0a1 linux #0-0]     at Function.<anonymous> (/builds/project/node_modules/wdio-ui5-service/src/wdi5.ts:117:35)
[firefox 134.0a1 linux #0-0]     at step (/builds/project/node_modules/wdio-ui5-service/cjs/wdi5.js:33:23)
[firefox 134.0a1 linux #0-0]     at Object.next (/builds/project/node_modules/wdio-ui5-service/cjs/wdi5.js:14:53)
[firefox 134.0a1 linux #0-0]     at /builds/project/node_modules/wdio-ui5-service/cjs/wdi5.js:8:71
[firefox 134.0a1 linux #0-0]     at new Promise (<anonymous>)
[firefox 134.0a1 linux #0-0]     at __awaiter (/builds/project/node_modules/wdio-ui5-service/cjs/wdi5.js:4:12)
[firefox 134.0a1 linux #0-0]     at Function.wdi5.goTo (/builds/project/node_modules/wdio-ui5-service/src/wdi5.ts:105:5)
[firefox 134.0a1 linux #0-0]     at Context.<anonymous> (/builds/project/test/app/e2e-tests/business-objects/bo-templates.test.js:16:14)
Spec Files:	 0 passed, 3 failed, 3 total (100% completed) in 00:00:48  

Runtime Env (please complete the following information):

  • wdi5/wdio-ui5-service: 3.0.0-rc.0
  • UI5: 1.120 LTS/LATEST
  • wdio: 9.2.1
  • node: 20.15.1
  • OS: Ubuntu LTS
  • Browser: firefox (v134.0a1)

Additional context
The test are run in an GitLab CI environment with --headless.

@xLexip xLexip changed the title TypeError: browserInstance.goTo is not a function 3.0.0-rc.0: TypeError: browserInstance.goTo is not a function Oct 30, 2024
@Siolto
Copy link
Collaborator

Siolto commented Oct 30, 2024

Hi @xLexip,

thanks for reporting this issue. I could reproduce it.

It seems like since v9 the hooks have changed their internal behavior. We need to investigate this further. As a workaround you could move your wdi5.goTo(...) directly into an it(...) step.

Regards
Simon

@Siolto Siolto added the bug Something isn't working label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants