seleniumhq.github.io icon indicating copy to clipboard operation
seleniumhq.github.io copied to clipboard

[🐛 Bug]: Getting Started Open Browser starter code

Open jlafleur93 opened this issue 3 years ago • 3 comments

What happened?

https://www.selenium.dev/documentation/webdriver/getting_started/open_browser/

  1. Open Link
  2. Click JavaScript on the code samples
  3. You can notice that the starter code includes suite tests
  4. if you run this as your code it will not run either

I wouldn't mind PRing this, but I was wondering where would I include new files for the starter code on this page?

What browsers and operating systems are you seeing the problem on?

All browsers/OS Incorrect documentation

jlafleur93 avatar Aug 23 '22 23:08 jlafleur93

Hi @jlafleur93 ,

Thank you for raising an issue. I believe the code samples are precise!

You need to follow the below steps to run the tests:

  1. Install selenium-webdriver via npm
  2. Install chromedriver via npm
  3. Run tests with the command mocha <testfile.js>

looks like we need to add docs for running code samples, if you'd like to help us, can you send a PR on the instructions to run tests?

Thanks, Harsha

harsha509 avatar Aug 24 '22 03:08 harsha509

I think users should first refer to the Install Library page, where they can find the 1st step. regarding docs for installing chrome driver via npm, something we should consider adding in the Install Drivers page

Dor-bl avatar Aug 24 '22 19:08 Dor-bl

@jlafleur93 I do not understand what is missing here. That file is part of a test suite placed here https://github.com/SeleniumHQ/seleniumhq.github.io/tree/trunk/examples/javascript, which also runs in GitHub actions.

What are you missing in the docs?

diemol avatar Aug 30 '22 08:08 diemol

Closing this as we never got more information.

diemol avatar Nov 02 '22 11:11 diemol

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 03 '22 01:12 github-actions[bot]