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

94
Views
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
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!