我嘗試在按鈕顯示時單擊按鈕。但是,當按鈕顯示時,在谷歌瀏覽器的頁面源中,實際的URL不顯示。這裏的源:單擊頁面源中不可見的按鈕(僅用於檢查)
<div id="fname2" style="display:none" > Description1 <br/> <span> Description2 </span></div>
<div id="fname"><h1 class="ThreeDee"> Preparing Your Links....<br/> Please wait...</h1></div>
<div id="hata" style="display:none" > Failed to Create Links.. <br/> <span>Please Restart your link Translation . </span></div>
<div id="vip" style="display:none" > None This Link Download your consent <br/> <span> More Description1.. </span></div>
</div>
<div id="buton" style="display:none">
<div class="info-link right" >
<a href="#">Download</a>
</div>
</div>
#
是當前頁面的鏈接(它是一個超鏈接),當它應該是下一個頁面的URL。但是,當我看到它後,「檢查」按鈕:
<div id="wrapper">
<div class="main-menu clearfix">
</div>
<center><a href="http://example.com/" target="_blank" rel="noreferrer" data-ss1496972790="1"> <img src="./images/example.png"></a></center>
<div class="info-v3 clearfix">
<div class="info-txt left">
<div id="fname2" style=""> Created to download Links <br> <span> Download your Download Push Button </span></div>
<div id="fname" style="display: none;"><h1 class="ThreeDee"> Preparing Your Links....<br> Please wait...</h1></div>
<div id="hata" style="display:none"> Failed to Create Links.. <br> <span>Please Restart your link Translation . </span></div>
<div id="vip" style="display:none"> None This Link Download your consent <br> <span> This file is a private Vip our users.. </span></div>
</div>
<div id="buton" style="">
<div class="info-link right">
<a href="http://thedownloadlink.com" data-ss1496972790="1">Download</a>
</div>
</div>
</div>
</div>
任何想法如何點擊按鈕?謝謝!
你到底想幹什麼? –
我試圖點擊此按鈕後出現:'Download',但我無法在頁面源中訪問它 –
您可能需要['mutationObserver'](https://developer.mozilla.org/en/docs/Web/API/MutationObserver) – tsh