Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

JavaScript not executed on certain pages

Abierto
#1,048 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
java, javascript
Área
backend

Línea de trabajo

Start by reproducing the report against the Boerse Frankfurt page and compare HtmlUnit’s output and local storage with the Selenium/ChromeDriver behavior described in the issue. The report provides a WebClient setup but names no source files or tests, so locate the relevant JavaScript execution and storage paths before investigating. Done means the page’s scripts populate the values and local storage as they do in a real browser.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary: JavaScript is not executed on some pages like https://www.boerse-frankfurt.de/aktie/tesla-inc?mic=XFRA. (live only during 8-22 CET)

In Detail: My code reads data from web pages that update themselves continously using JavaScript. Works on most websites, but fails on the above (and Stockopedia for that matter).

When tested with a real browser or my own code base using Selenium/ChromeDriver, the website above initially loads filled with zero values. Its JavaScript then updates the values and puts two entries into local storage. With HtmlUnit, site is stuck with initial zero values, no local storage set.

Request is plain vanilla:

WebClient webClient = new WebClient(); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); webClient.setCssErrorHandler(new SilentCssErrorHandler()); webClient.setJavaScriptErrorListener(new SilentJavaScriptErrorListener()); webClient.setIncorrectnessListener(new SilentIncorrectnessListener()); webClient.getOptions().setPrintContentOnFailingStatusCode(false); webClient.getOptions().setPopupBlockerEnabled(false); webClient.getOptions().setDoNotTrackEnabled(true); webClient.getOptions().setMaxInMemory(2 * 1024 * 1024); webClient.getOptions().setThrowExceptionOnScriptError(false); webClient.getOptions().setThrowExceptionOnFailingStatusCode(true); webClient.getOptions().setHistoryPageCacheLimit(0); webClient.getOptions().setHistorySizeLimit(0); HtmlPage page = (HtmlPage) webClient.getPage(url);

Lenguaje dominante
JavaScript
Estrellas
952
Forks
183
Merge medio
2 d 1 h
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de HtmlUnit/htmlunit

Todos los issues de HtmlUnit/htmlunit

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.