Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
IDが文字列で始まり、別の文字列で終わるhtmlページから要素を取得するにはどうすればよいですか。たぶん、あなたは次の例で私の質問を得るでしょう:
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);