cobrateam / cobrateam/splinter

Clicking a checkbox should not submit the form

Open
#1,050 1 comment 0 reactions 0 assignees View on GitHub
bug django
Dominant language
Python
Stars
2.7k
Forks
511
PR merge metrics
No merged PRs in 30d

Description

Using a Django client, checkboxes are considered to be LxmlControlElements, where `click` then will submit the form:
https://github.com//cobrateam/splinter/blob/986ce0a10c52f08196b32b91f752182cb7517892/splinter/driver/lxmldriver.py#L421-L433

I've used `browser.find_by_id("id_foo").first.click()`.
The workaround is using `browser.check("foo")`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.