Skip to content

Add slimmed-down Selenium project code #596

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

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

martin-martin
Copy link
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

@martin-martin martin-martin self-assigned this Oct 14, 2024
@martin-martin
Copy link
Contributor Author

@bzaczynski this is my attempt to create a slimmed-down version of the project that primarily focuses on Selenium web interactions (now following POM), but also keep the basic functionality of the music player (and a reduced---but existing---separation of concerns).

I've tried to build the project in a way so that it can lead into the project that you wrote, with the idea in mind that learners could follow your SbSP as a next step if they're interested in the music player project. At the same time, I tried to keep it simple and reduced enough that learners who are only there for an intro to Selenium would get their money's worth.

Hope this works and looking forward to your thoughts!

Linking the other PR for reference: #583

Copy link
Contributor

@bzaczynski bzaczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-martin I left a few comments for you. Let me know what you think.

Copy link
Contributor

@bzaczynski bzaczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-martin Perfecto ✨ Thanks for a quick update! Can't wait to review the rest of it 😉

martin-martin and others added 3 commits March 12, 2025 19:43
Bandcamp removed the "Discover" section from their main page
since we wrote this code. Now, the tracks are only available at the
dedicated /discover URL.

I restructured the code to target the /discover site instead, which
required a couple of changes. Still, the existing POM structure was
helpful :)

I also (re)introduced a new "pause" option, because that's a bit easier
in this new structure.

Finally, I only allow loading more songs once, which gives a total of
120 songs to pick from with the default screen setting. Attempting to
load more resulted in errors, I think because they'd be outside of the
viewport and I didn't want to expand the code more and introduce
scrolling more of them into view. Also, not sure whether that'd take
earlier ones out of the viewport (etc) so I just decided not to open
that can of worms for this "Intro to Selenium" tutorial. LMK if you
disagree, otherwise of course you can tackle that in your longer one
that builds on top of this one :)
Copy link
Contributor

@bzaczynski bzaczynski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martin-martin Hi Martin!

The code looks great overall. I only left a few minor comments for your consideration, but no explicit requests for change.

Take care!

@martin-martin martin-martin requested a review from bzaczynski April 2, 2025 11:57
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

Successfully merging this pull request may close these issues.

2 participants