Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

96
Vistas
Incompatibility between testcafe and jquery mobile checkboxradio?

Testcafe has unusual behavior when operating a jQuery mobile checkboxradio widget. t.click() results in two click events being fired on the checkbox input. Both of these clicks appear to come from testcafe.

Working vanilla checkbox test:

import { Selector } from 'testcafe';

fixture`checkboxradio test`
    .page`https://html.form.guide/checkbox/html-form-with-checkbox/`;

test('Checkbox state from testcafe', async t => {
        const cb = await Selector('input[type=checkbox]');
        await t.expect(cb.nth(0).checked).eql(false)
                .click(cb.nth(0));

        await t.expect(cb.nth(0).checked).eql(true);
});

jQuery mobile checkbox (fails)

import { Selector } from 'testcafe';

fixture`checkboxradio test`
    .page`https://demos.jquerymobile.com/1.4.5/checkboxradio-checkbox/`;

test('Checkbox state from testcafe', async t => {
        const cb = await Selector('#checkbox-h-2a');
        await t.expect(cb.checked).eql(false)
                .click(cb);

        await t.expect(cb.checked).eql(true);
});

Anyone familiar with this issue? Any workarounds?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda