Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Selenium didn't see that attribute value has changed

I'm trying to get number of notifications from element using Selenium, but it didn't see changes. Number of messages just a number above notification icon, like on picture:

But then I trying to process this element:

notify_element = WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.CLASS_NAME, 'data-count')))
    count_of_notify = int(notify_element.get_attribute('data-count'))

I recive count_of_notify = 0. I don't understand why.

Code of this element:

<a id="notify-toggle" class="toggle link">
    <span title="Уведомления" class="data-count" data-count="1" data-icon="">
    </span>
</a>

But data-count changes depanding on number of notifications.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!