jmcarp / jmcarp/robobrowser

Cannot set a value to non-existent attribute within a field

Open
#84 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

Hi,
I have this issue. I am trying to fill forms of this website using robobrowser. My code in python is below:
```
new_CRTS_DR3_beta_url = 'http://crts.iucaa.in/CRTS/'
browser = RoboBrowser()
browser.open(new_CRTS_DR3_beta_url)
form = browser.get_form(action='/CRTS/imaging')
form['query_input'].value = '332.64277 -22.66323'
form['radius'].value = '0.1'
```
However, 'query_input' does not have the attribute value before I fill the input, and when the input is filled the attribute value appears and is set with the input value. The HTML code looks like:
- Before when it is empty:
```

```
- After setting an input:
```

```
Thank you for any help!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported form assignment with the RoboBrowser snippet and the referenced /CRTS/imaging form. Trace how form fields handle a missing value attribute, then verify the chosen behavior with a focused regression test; done means assigning query_input.value works consistently for this hidden input.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.