Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cgomez11 opened this issue Feb 19, 2018 · 0 comments
Open

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

cgomez11 opened this issue Feb 19, 2018 · 0 comments

Comments

@cgomez11
Copy link

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:
 <input class="form-control input-sm" type="hidden" id="query_input" 
name="query_input">
  • After setting an input:
<input class="form-control input-sm" type="hidden" id="query_input" name="query_input" value="332.64277,-22.66323">

Thank you for any help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant