Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8417601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:05:54+00:00 2026-06-10T02:05:54+00:00

When I go to a certain webpage I am trying to find a certain

  • 0

When I go to a certain webpage I am trying to find a certain element and piece of text:

<span class="Bold Orange Large">0</span>

This didn’t work: (It gave an error of compound class names or something…)

elem = browser.find_elements_by_class_name("Bold Orange Large")

So I tried this: (but I’m not sure it worked because I don’t really understand the right way to do css selectors in selenium…)

elem = browser.find_elements_by_css_selector("span[class='Bold Orange Large']")

Once I find the span element, I want to find the number that is inside…

num = elem.(what to put here??)

Any help with css selectors, class names, and finding element text would be great!!

Thanks.

EDIT:

My other problem is that there are multiple of those exact span elements but with different numbers inside..how can I deal with that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:05:56+00:00Added an answer on June 10, 2026 at 2:05 am

    you’re correct in your usage of css selectors! Also your first attempt was failing because there are spaces in the class name and selenium does not seem to be able to find standalone identifiers with spacing at all. I think that is a bad development practice to begin with, so its not your problem. Selenium itself does not include an html editor, because its already been done before.

    Try looking here: How to find/replace text in html while preserving html tags/structure.

    Also this one is relevant and popular as well: RegEx match open tags except XHTML self-contained tags

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to parse for this certain piece of text in a
I'm trying to find text on a webpage that's not marked with a specific
I currently am trying to add tags around certain words in a webpage. This
When I go to a certain webpage I am trying to find a certain
I'm trying to see what a certain webpage would look like if I replaced
I am trying to make an array from elements with a certain class in
I'm trying to print/save a certain element's HTML from a web-page. I've retrieved the
I am trying to read in the body of a certain webpage to display
I'm trying to implement a jQuery slider control for opacity of a certain element
I'm getting an Aw, snap! chrome crash when a certain webpage is being loaded.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.