[英]Watin get elements where the id contains some text
我如何從html頁面獲取元素,其中id以字符串開頭,以另一個字符串結尾。 也許您會通過以下示例得到我的問題:
HTML:
<a href="#" onClick="" id="olla{randomtext}:id23">text</a>
結果:
I would like to click on links where id is like olla{randomtext}:id
有沒有可能的解決方案?
HtmlElement elementid;
elementid.Id="Your id"
//focus to selected id
webbrowser.Document.GetElementById(ElementId).ScrollIntoView(true);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.