外行一枚,还请大神指点。
我需要到一个网页上下载数据文件。网页布局如下:
需要点击的按钮代码如下:
我通过这样的指令试图点击:
没有提示任何错误,但是页面也没有任何反应。
如果手动点击Download会提示文件下载:
如果持续点击会出现这样的报错:
我大概知道这个是因为这个网页一直在自动刷新,所以提示了错误。
==========================================================================
我的问题是:
1、为什么第一次执行的时候页面没有任何反应?
2、面对这种因为刷新提示的错误,有怎样的解决方案?
==========================================================================
网页完整代码附在下方。
谢谢!?
<!DOCTYPE html>
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-jp" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<link rel="stylesheet" type="text/css" href="./css/auth.css" media="all" />
<title>LOGIN Page for Registered Users</title>
</head>
<body>
<form name="auth" action="./?LANG=en" method="post">
<div id="container">
<div id="lang_switcher">
<img src="/image/clang.gif" alt="" title="" />
Japanese
</div>
<div id="notice_field">
<div id="title_l">
<img src="/image/auth_logout.png" id="title" alt="" title="" />
</div>
<div id="title_r">
<span id="title">LOGIN Page for Registered Users</span>
<br /><br /><br />
[Notice]
<ul id="notice"><li>Mar 01, 2017
We started the updating user account 2017.
</li></ul>
</div>
<p id="clear"></p>
<br />
<div id="contents_t_en">Continuous Waveform Data Download</div>
<div id="contents_e_en">You can download continuous waveform data observed by NIED (Hi-net / F-net / V-net), JMA, universities and other organizations in Japan from this page.
On our website, data after April 1st, 2004 are available.</div>
<div id="contents_t_en">Old waveform data download</div>
<div id="contents_e_en">Pages for downloading continuous waveform data of before April 1, 2004 or the long-term data.</div>
<div id="contents_t_en">Event Waveform Data Download</div>
<div id="contents_e_en">You can download event triggered (earthquake) waveform data for local earthquakes from this page.</div>
<div id="contents_t_en">Preliminary Catalog by the Hi-net Automatic System</div>
<div id="contents_e_en">You can see the earthquake catalog obtained by the NIED Hi-net automatic hypocenter determination system.</div>
<div id="contents_t_en">JMA Unified Hypocenter Catalogs</div>
<div id="contents_e_en">You can access earthquake lists, arrival-time data, and focal mechanism catalogs provided by the Japan Meteorological Agency (JMA). In order to construct these catalogs, JMA analyses not only their data but also data provided by NIED, universities, and other organizations.</div>
<div id="contents_t_en">Epicentral distribution of deep low-frequency tremor in southwest Japan</div>
<div id="contents_e_en"></div>
<div id="contents_t_en">Azimuth Information of the Hi-net Borehole Sensors</div>
<div id="contents_e_en">You can check sensor orientation at the Hi-net stations on this page.</div>
<div id="contents_t_en">Borehole Sensors Maintenance History</div>
<div id="contents_e_en">On this page, we list the maintenance histories of borehole sensors.</div>
<div id="contents_t_en">Response of Observation Equipments</div>
<div id="contents_e_en">You can view total responses of the NIED Hi-net and F-net system in SEED Header format.</div>
<div id="contents_t_en">WIN Channels Table File for the NIED Hi-net</div>
<div id="contents_e_en">This page shows WIN channel information for the NIED Hi-net stations.</div>
<div id="contents_t_en">Manuals/Tools</div>
<div id="contents_e_en">You can get several manuals and tools that are useful to operate data we provide on our website.</div>
</div>
<div id="entry_field">
If you publish your results using waveform data downloaded from our website,
you MUST acknowledge all data sources you used in your publication and send its copy
to the NIED DMC. For details, check
this page.
<span id="emphasis">Under the agreement to above requirements</span>
<div id="entry_field_l">
<img src="/image/key_lock.gif" alt="" title="" />
NIED seismic network user account
<input type="text" id="entry" name="auth_un" maxlength="12" placeholder="User name" />
<input type="password" id="entry" name="auth_pw" maxlength="12" placeholder="Password" />
<button type="reset" id="clear">Reset</button>
</div>
<div id="entry_field_r">
<button type="submit" id="login">LOGIN</button>
</div>
<p id="clear"></p>
* Not be able to login if your browser's cookie disabled.
<div id="entry_field_l">
<img src="/image/nied_logo.gif" id="nied_logo" alt="" title="" />
</div>
<div id="entry_field_r">
<script type="text/javascript" src="https://seal.websecurity.nort...;amp;size=S&use_flash=NO&use_transparent=No&lang=en"></script>
</div>
<p id="clear"></p>
Before accessing pages shown on right, you have to register and get your own ID and password.
After the registration, you can access not only the all pages on the Hi-net, K-NET, KiK-net, F-net, V-net website.
If you have some questions about user registrations, send E-mail to sanction@bosai.go.jp
In order to grasp effectiveness of our seismograph networks,
and to improve our data service, we ask all users to register.
</div>
<p id="clear"></p>
</div>
<div id="copyright">
Network Center for Earthquake, Tsunami and Volcano,
National Research Institute for Earth Science and Disaster Resilience.
3-1 Tennodai, Tsukuba City, Ibaraki Prefecture, 305-0006, JAPAN
Copyright ©
<span style="font-weight:bold;">N</span>ational Research
<span style="font-weight:bold;">I</span>nstitute for
<span style="font-weight:bold;">E</span>arth Science and
<span style="font-weight:bold;">D</span>isaster Resilience
All rights Reserved.
</div>
</form>
</body>
</html>
用executeScript("document.querySelector(\"input[name='search']\").click()")试试,我用的Java的写法,你根据python的改一下试试