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

189
Views
Usando selenio para hacer clic en el botón ajax

Estoy tratando de entender cómo interactuar en un sitio con un elemento ajax. Estoy usando selenium+phantomJS para hacer clic en el botón "Más" que tiene este código:

 <a class="js-cne-ajax cne-more-button cne-more-videos cne-light-button" data-ajaxurl="/genres/Books.js?page=2" rel="nofollow" href="javascript:void(0)">More</a>

estoy usando esto:

 wait = WebDriverWait(driver, 10) next_link = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, "a.js-cne-ajax.cne-more-button.cne-more-videos.cne-light-button"))) next_link.click() driver.save_screenshot('screenshot.png')

Mi problema es que parece que no se puede hacer clic en el elemento. ¿Puede ser porque el selector css está mal o, de alguna manera, las páginas ajax necesitan un enfoque diferente? ¿Puede el "rel=nofollow" crear algunos problemas?

about 4 years ago · Santiago Trujillo
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!