の「クリック」、私はエラーを取得しています:セレンwebdriverを:要素がクリックできない&プロパティを読み取ることができません。このコマンドを実行するときにヌル
driver.find_element_by_link_text("Confirm").click()
selenium.common.exceptions.WebDriverException: Message: unknown error: Element <a href="javascript:void(0);" class="c-button u-fontSize13 c-button--blue transparent-button js-connect-button js-request-connection" data-href="https://angel.co/user_graph_requests" data-invited-id="5911955">...</a> is not clickable at point (67, 581). Other element would receive the click: `<div class="mfp-container mfp-ajax-holder mfp-s-loading">...</div>`
この問題に答えを検索した後、私はしました最初の場合
element = driver.find_element_by_link_text("Confirm").click()
driver.execute_script("arguments[0].click();", element)
それが働いていたし、このエラーを印刷クリック:に上記のコードを変更し
selenium.common.exceptions.WebDriverException: Message: unknown error: Cannot read property 'click' of null
HTMLコードは次のとおりです。
<a href="javascript:void(0);" class="c-button js-close s-vgLeft0_5 c-button--blue" data-modal="true" data-url="https://angel.co/user_graph_requests/102006082/verify">Confirm</a>
をクリックすることを計画しているオブジェクトを指すべきです
ここで: 'driver.find_element_by_link_text("確認 ")。あなたのリンクが他の要素の背後にある()'をクリックします。つまり、何らかの理由で要素をフロントエンドに持ってきたことを意味します。これは、ページが完全に読み込まれていないなど多くのことを意味する可能性があります。それについての他の情報がなくても、何が起きているのかを正確に言うことは難しいです。 – Edwin
クリックする前に待つようにしてください。 –