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

Endless loop when opening this url?

Abierto
#942 16 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 hang with the provided Java snippet and URL, then trace HtmlUnit's page-loading and JavaScript execution behavior for endlessly scrolling pages. The issue does not name a source file or test; identify an existing loading or scrolling test to extend. Done means the page load terminates without preventing the intended scroll test.

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

Descripción

When opening https://en.js.cx/task/endless-page/solution/ htmlunit gets stuck, probably loading the endlessly scrolling page forever.

Its interesting the driver itself never times out, it just keeps going. Had waits set up after driver get but those were never reached.


driver = new HtmlUnitDriver(BrowserVersion.FIREFOX, true) {
            @Override
            protected WebClient modifyWebClient(WebClient client) {
                final WebClient webClient = super.modifyWebClient(client);
                WebClientOptions options = webClient.getOptions();
                options.setCssEnabled(true);
                options.setThrowExceptionOnScriptError(false);
                webClient.setJavaScriptErrorListener(new SilentJavaScriptErrorListener());
                return webClient;
            }
        }

driver.get("https://en.js.cx/task/endless-page/solution/");

My goal was to trigger the scroll via scroll into view, but never reached that phase.

((JavascriptExecutor) driver).executeScript("arguments[0].scrollIntoView();",driver.findElement(lastElement));

I wanted to set up a test case for scroll not working correctly and found this bug instead.

Assume its due to htmlunit not having a ui and triggering scroll on the page due to showing the last element.

Can open the page in Firefox fine.

Image

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.