【发布时间】:2017-11-15 03:15:45
【问题描述】:
我想按一个按钮来打开网络浏览器中的这个下拉菜单。
这里是代码 html...
<div class="nfTabSelectionWrapper" id="directDisplayStringId"><a class="nfTabSelection nfTabSelection--active mentPicker standardHeight" href="#"><div class="mopNameAndLogos"><span class="nfTabSelection--text card-type-text mentActive">Options</span><div class="logosContainer"><span class="logos logos-inline"></span></div></div><span class="ui-svg-icon ui-svg-icon--chevron pull-right pickerArrow"></span></a></div>
下拉菜单的图片...
我尝试使用此代码,但没有成功:
WebBrowser1.Document.GetElementById("directDisplayStringId").InvokeMember("click")
【问题讨论】:
标签: vb.net button drop-down-menu webbrowser-control