jmcarp / jmcarp/robobrowser

Disabled fields should be enableable

Open
#48 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
336
PR merge metrics
No merged PRs in 30d

Description

For forms where some fields are initially disabled, but may be enabled through Javascript later, robobrowser seems to be unable to replicate that behaviour. `disabled` is a `@property` on the form field which cannot be overridden, so disabled fields cannot be enabled programmatically.

It's possible to work around this by adding a new field (`form.add_field(Input(''))`), but this seems rather clunky. It'd be better to be able to do something like this:

```
form['field'].disabled = False
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.