【发布时间】:2018-12-02 01:26:09
【问题描述】:
我正在寻找一个字符串。但这似乎不起作用。
HTML:
<form name="form1" method="post" action="?cz=del&wbid=7683290543&zjt=aaa&lx=CNAME&xl=%C4%AC%C8%CF&fs=" onSubmit="return b_ifsf('delete?');" id="form1">
<td style="width:120px">
<input type="hidden" name="ip" value="aaa.xxx.com.a.bdydns.com." >
<input type="submit" name="rpt$btnDelete" value="delete" />
</td>
</form>
<form name="form1" method="post" action="?cz=del&wbid=2324242122&zjt=bbb&lx=CNAME&xl=%C4%AC%C8%CF&fs=" onSubmit="return b_ifsf('delete?');" id="form1">
<td style="width:120px">
<input type="hidden" name="ip" value="bbb.xxx.com.a.bdydns.com." >
<input type="submit" name="rpt$btnDelete" value="delete" />
</td>
</form>
<form name="form1" method="post" action="?cz=del&wbid=2324242553&zjt=ccc&lx=CNAME&xl=%C4%AC%C8%CF&fs=" onSubmit="return b_ifsf('delete?');" id="form1">
<td style="width:120px">
<input type="hidden" name="ip" value="ccc.xxx.com.a.bdydns.com." >
<input type="submit" name="rpt$btnDelete" value="delete" />
</td>
</form>
如何找到关键字bbb.xxx.com.a.bdydns.com.然后点击提交删除?
【问题讨论】:
-
嗨,欢迎来到 StackOverflow。请阅读stackoverflow.com/help/how-to-ask
-
这不是连续的 HTML 摘录,是吗?请张贴,包括
<form>。 -
如果可能,请显示您的代码、更多 html 和 URL。
标签: python selenium selenium-webdriver xpath web-scraping