在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Python/ selenium點(diǎn)擊頁面失敗

selenium點(diǎn)擊頁面失敗

外行一枚,還請大神指點(diǎn)。

我需要到一個(gè)網(wǎng)頁上下載數(shù)據(jù)文件。網(wǎng)頁布局如下:

圖片描述

需要點(diǎn)擊的按鈕代碼如下:
圖片描述

我通過這樣的指令試圖點(diǎn)擊:
圖片描述

沒有提示任何錯(cuò)誤,但是頁面也沒有任何反應(yīng)。
如果手動(dòng)點(diǎn)擊Download會(huì)提示文件下載:
圖片描述

如果持續(xù)點(diǎn)擊會(huì)出現(xiàn)這樣的報(bào)錯(cuò):
圖片描述

我大概知道這個(gè)是因?yàn)檫@個(gè)網(wǎng)頁一直在自動(dòng)刷新,所以提示了錯(cuò)誤。

==========================================================================

我的問題是:
1、為什么第一次執(zhí)行的時(shí)候頁面沒有任何反應(yīng)?
2、面對這種因?yàn)樗⑿绿崾镜腻e(cuò)誤,有怎樣的解決方案?

==========================================================================
網(wǎng)頁完整代碼附在下方。
謝謝!?

<!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&amp;use_flash=NO&amp;use_transparent=No&amp;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>

回答
編輯回答
我不懂

換了個(gè)瀏覽器,從Firefox換成了Chrome,第一個(gè)問題解決了。
查找網(wǎng)頁元素的同時(shí)點(diǎn)擊,第二個(gè)問題也解決了。

2017年11月8日 19:25
編輯回答
心上人

用executeScript("document.querySelector(\"input[name='search']\").click()")試試,我用的Java的寫法,你根據(jù)python的改一下試試

2017年2月11日 10:32