![](/img/trans.png)
[英]Cannot click a button by its known Element Id on Webbrowser #Vb.net
[英]Vb.Net WebBrowser click (tablo inside) button
我想點擊那個按鈕。 但我找不到代碼。
<li class="rtbItem rtbBtn"><a class="rtbWrap" href="#">
<span class="rtbOut"><span class="rtbMid"><span class="rtbIn">
<img alt="" src="icons/Export.png" class="rtbIcon">
<span class="rtbText">Export</span></span></span></span></a></li>
這是cc代碼。
For Each elem As HtmlElement In WebBrowser1.Document.GetElementsByTagName("span")
If elem.GetAttribute("className").Contains("rtbText") Then 'Get the InnerText of the Element End If
MsgBox(elem.OuterText)
End If
Next
我試過這個。 而不讀我問的代碼。 這個代碼來自網站的tablo。 抱歉壞了。 這是網站和按鈕圖片
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.