Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
i have problem on programmatically click HTML button in c#

i have used following code but not working,because of there is no name for button

Html Code:
HTML
<button id="gbqfb" aria-label="Google Search" class="gbqfb">


C# code :
C#
WebBrowser.Document.GetElementById("gbqfb").InvokeMember("click");


please kindly help on this problem...

thanks
Posted
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900