简体   繁体   中英

C# Webbrowser Click on Javascript Button

I need a help with a problem:

My Page is written in html and javascript.

When i use webBrowser1.Document.GetElementById("hmenu").InvokeMember("click"); this menu opens on my screen but I don't know what I must use to click the button writed javascript it is selected on image http://www.bankfotek.pl/view/1153142

Have you tried to invoke click onto the button? I believe you need to assign a id to the button, then invoke it by doing

webBrowser1.Document.GetElementById("hmenu.ID").InvokeMember("click");

Hope that works

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM