<< | Index | >>
Currently, parse_swissreg
method does not send any select values with POST.
<div class=\"non_printable\"> <fieldset id=\"id_swissreg:sub_error:id_messages\"> <legend><span id=\"id_swissreg:sub_error:id_titleMessages\">Informationsmeldung</span></legend> <span id=\"id_swissreg:sub_error:id_fatalMessages\" class=\"fatalmsg\"></span> <span id=\"id_swissreg:sub_error:id_errorMessages\" class=\"errormsg\"></span> <span id=\"id_swissreg:sub_error:id_warnMessages\" class=\"warnmsg\"></span> <span id=\"id_swissreg:sub_error:id_infoMessages\" class=\"infomsg\">» Geben Sie mindestens ein Suchkriterium ein.<br/></span> # => <span id=\"id_swissreg:sub_error:id_debugMessages\" class=\"debugmsg\"></span> </fieldset> </div>
This meas swissreg.ch needs more parameters.
Then I checked with debugger.
[5] 2.0.0-p195(#<Brand2csv::Swissreg>)> @agent.page.forms.first.fields => [[hidden:0xe736f0 type: hidden name: autoScroll value: ], [text:0xe73538 type: text name: id_swissreg:mainContent:id_txf_tm_no value: ], [text:0xe73380 type: text name: id_swissreg:mainContent:id_txf_app_no value: ], [text:0xe73164 type: text name: id_swissreg:mainContent:id_txf_tm_text value: ], [text:0xe72f84 type: text name: id_swissreg:mainContent:id_txf_applicant value: ], [text:0xe72d40 type: text name: id_swissreg:mainContent:id_txf_agent value: ], [text:0xe72b74 type: text name: id_swissreg:mainContent:id_txf_licensee value: ], [text:0xe729a8 type: text name: id_swissreg:mainContent:id_txf_nizza_class value: ], [text:0xe72778 type: text name: id_swissreg:mainContent:id_txf_appDate value: 1.10.2005-31.10.2013], [text:0xe725ac type: text name: id_swissreg:mainContent:id_txf_expiryDate value: ], [text:0xe723e0 type: text name: id_swissreg:mainContent:id_txf_pub_date value: ], [hidden:0xe7aa54 type: hidden name: id_swissreg_SUBMIT value: 1], [hidden:0xe7a8d8 type: hidden name: id_swissreg:_idcl value: ], [hidden:0xe7a6f8 type: hidden name: id_swissreg:_link_hidden_ value: ], [hidden:0xe7a568 type: hidden name: javax.faces.ViewState value: rO0ABXVyABNbTGphdmEubGFuZy5PYmplY3Q7kM5YnxBzKWwCAAB4cAAAAAN0AAE0cHQAFi9qc3AvdHJhZGVtYXJrL3NyMy5qc3A=], [selectlist:0xe7fd9c type: name: id_swissreg:mainContent:id_cbxCountry value: []], #=> must be "_ALL" [selectlist:0xe92910 type: name: id_swissreg:mainContent:id_cbxTMTypeGrp value: []], #=> must be "_ALL" [selectlist:0xe97fa0 type: name: id_swissreg:mainContent:id_cbxTMForm value: []], #=> must be "_ALL" [selectlist:0xe973d4 type: name: id_swissreg:mainContent:id_cbxTMColorClaim value: []], #=> must be "_ALL" [selectlist:0xe96d08 type: name: id_swissreg:mainContent:id_cbxFormatChoice value: []], #=> must be "_ALL" [selectlist:0xe96614 type: name: id_swissreg:mainContent:id_cbxHitsPerPage value: []]] #=> must be "_ALL"
set selectlist
[8] 2.0.0-p195(#<Brand2csv::Swissreg>)> @agent.page.forms.first.send("id_swissreg:mainContent:id_cbxCountry=", "_All") => "_All" [10] 2.0.0-p195(#<Brand2csv::Swissreg>)> @agent.page.forms.first.fields => [[hidden:0xe736f0 type: hidden name: autoScroll value: ], ..., [selectlist:0xe7fd9c type: name: id_swissreg:mainContent:id_cbxCountry value: ["_All"]], #=> expected [selectlist:0xe92910 type: name: id_swissreg:mainContent:id_cbxTMTypeGrp value: []], ... ...