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

TypeError: chrome.Options.chrome is not a function #54

Open
1u opened this issue Nov 18, 2023 · 4 comments
Open

TypeError: chrome.Options.chrome is not a function #54

1u opened this issue Nov 18, 2023 · 4 comments

Comments

@1u
Copy link

1u commented Nov 18, 2023

Describe the bug
Client tests fail with type error.
both for 1.5.1 and 1.5.3

Unfortunately I can't tell what change caused it (linting error prevented running tests for almost a month)

Repo: https://gitlab.com/Openki/Openki

Log

I20231118-19:24:55.864(0)?   50 passing (129ms)
I20231118-19:24:55.864(0)? 
I20231118-19:24:55.865(0)? 
I20231118-19:24:55.865(0)? --------------------------------
I20231118-19:24:55.865(0)? ----- RUNNING CLIENT TESTS -----
I20231118-19:24:55.866(0)? --------------------------------
W20231118-19:24:55.883(0)? (STDERR) /root/.meteor/packages/meteortesting_mocha-core/.8.1.2.1pesrr7.nent++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mocha/lib/runner.js:906
W20231118-19:24:55.884(0)? (STDERR)     throw err;
W20231118-19:24:55.885(0)? (STDERR)     ^
W20231118-19:24:55.885(0)? (STDERR) 
W20231118-19:24:55.885(0)? (STDERR) TypeError: chrome.Options.chrome is not a function
W20231118-19:24:55.886(0)? (STDERR)     at startChrome (packages/meteortesting:browser-tests/browser/chromedriver.js:56:89)
W20231118-19:24:55.886(0)? (STDERR)     at startBrowser (packages/meteortesting:browser-tests/server.js:28:7)
W20231118-19:24:55.895(0)? (STDERR)     at clientTests (packages/meteortesting:mocha/server.js:148:3)
W20231118-19:24:55.895(0)? (STDERR)     at packages/meteortesting:mocha/server.js:194:7
W20231118-19:24:55.895(0)? (STDERR)     at packages/meteortesting:mocha/server.js:122:13

Versions
meteortesting:browser-tests@1.5.1
meteortesting:mocha@2.1.0
meteortesting:mocha-core@8.1.2

see https://gitlab.com/Openki/Openki/-/tree/dev/.meteor?ref_type=heads for all versions.

Any help welcome

Copy link

Thank you for submitting this issue!

We, the Members of Meteor Community Packages take every issue seriously.
Our goal is to provide long-term lifecycles for packages and keep up
with the newest changes in Meteor and the overall NodeJs/JavaScript ecosystem.

However, we contribute to these packages mostly in our free time.
Therefore, we can't guarantee you issues to be solved within certain time.

If you think this issue is trivial to solve, don't hesitate to submit
a pull request, too! We will accompany you in the process with reviews and hints
on how to get development set up.

Please also consider sponsoring the maintainers of the package.
If you don't know who is currently maintaining this package, just leave a comment
and we'll let you know

@StorytellerCZ
Copy link
Member

@nachocodoner any initial thoughts on this?

@nachocodoner
Copy link
Member

@1u which is your selenium-websdriver version?

chrome.Options.chrome depends on that package.

In the latest meteortesting:browser-tests@1.5.3 version we reviewed the compatibility on latest selenium-websdriver 4.x.

Make sure these npm packages matches the proper versions.

image

Let me know if this fixed it, otherwise I will take a look into your repo. Thank you!

@1u
Copy link
Author

1u commented Nov 21, 2023

Thx a lot for the quick answer. Version was 3.6.0.
Didn't had time to test it yet. I'll let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants