There are two selects. The second has the display: none property and appears only when the first one is selected. I choose the first one without any problems:

br = Browser() br.select_form(nr=0) br.find_control(name='category_id').value = ["84"] 

second control:

 br.find_control(name="param").value = ["1"] Traceback (most recent call last): File "C:/", line 25, in <module> br.find_control(name="param").value = ["1"] File "build\bdist.win32\egg\mechanize\", line 3101, in find_control File "build\bdist.win32\egg\mechanize\", line 3185, in _find_control mechanize._form.ControlNotFoundError: no control matching name 'param' 

How to set the value of the second select?

  • Is there a 'param' there? - alexlz
  • Yes. It is "wrapped" in <div class = "class_name" id = "params" style = "display: none"> and appears only when the value of the first select is selected. 'param' is the name of the select that appears, which can be seen using the "view element code" in chrome - PSem
  • And where does he come from, in this chrome? If it is created by a toad script, it will be problematic to find it in your mechanics, because I doubt that mechanics at sourceforge also have js in their mechanisms - alexlz