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 · 6 comments
Open

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

xLexip opened this issue Oct 30, 2024 · 6 comments
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
Copy link

hey 👋 - silence for 30 days 🤐 ... anybody? 😀

@github-actions github-actions bot added the stale label Dec 30, 2024
Copy link

closed 📴 because silencio 🤫 since an additional 14 days after staleness 📠

@xLexip
Copy link
Author

xLexip commented Jan 13, 2025

Hello again?

@heimwege
Copy link
Contributor

@Siolto or @vobu can we please re-open this one? I've fallen into the same trap 🙈
The wdi5 types also still proposes goTo e.g. in the before hook which crashes at runtime.
The proposed workaround directly using it in the it works 👍🏻

@vobu
Copy link
Contributor

vobu commented Feb 10, 2025

we're still having major performance issues w/ wdi5^3 ↔︎ wdio^9 - so even though this is meh, there's currently some bigger fish to catch first 😬

@vobu vobu reopened this Feb 10, 2025
@github-actions github-actions bot removed the stale label Feb 11, 2025
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

4 participants