English 中文(简体)
3. 与Ruby Mechanize 取得结构差的超文本
原标题:Parsing poorl structured HTML document with Ruby Mechanize

我不得不把结构不完善的超文本文件与Rubili机械师混为一谈。 网页上有2种表格,但几乎没有提交任何形式要素的县,因此无法点击这些县。

有两个下降,两个下降情况不同,但都提出,纽芬兰语不属于这些形式,即必须从这些DDs中选择数值,并点击这个纽子,即无法点击这个纽子。

任何帮助?

All answers are appreciated... Here is the sample HTML

<form action= abc/abc.asp >
<select name= state >
<option value= 1 >1</option>
<option value= 2 >2</option>
<option value= 3 >3</option>
</select>
</form>

<select name= options >
<option value= 1 >1</option>
<option value= 2 >2</option>
</select>

<input name="submit" type="submit" value="View Results">

看一看,第二次降级和纽顿没有任何形式,即希望从第二个DDL中挑选出价值,并打上“意见结果”纽吨

问题回答

You could try this which should be the same result as clicking the button:

form[ submit ] =  View Results 
form.submit




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签