在 AngleSharpIHtmlAnchorElement
中有 DoClick()
方法。就我而言,我需要单击div
. 我该怎么做?
HTML:
<div role="button" class="div"></div>
C#:
IHtmlAnchorElement anc = document.Anchors.First(x => x.ClassName == "anc");
anc.DoClick();
IElement div = document.All.First(x => x.ClassName == "div");
//! DoClick on div?