Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

i have a problem

i developed project with Visual Basic .NET 2008. This project open website and auto login.
web site source is;

XML
<div id="ana">
    <div id="header"></div>
    <div id="main">
        <div id="menu">
            <div id="cm"></div>
            <div id="buton">
                <img src="images/buton1.jpg" alt="Giriş" onmouseout="this.src='images/buton1.jpg'" onmouseover="this.src='images/buton2.jpg'" onclick="openLoginPopup()" width="167" height="53" border="0"/>
            </div>




Ok
I want to AutoClick <div id="buton"> or <img src="images/buton1.jpg" />

but i can't

How can i do

Please Help me
Posted
Updated 28-Apr-10 5:26am
v2

1 solution

I don't know if it's actually for now, but...
C#:
WebBrowser.Document.GetElementById("buton").InvokeMember("click");

I don't have VB now to look for syntax...
 
Share this answer
 
v3

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