Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I'm trying to figure a way out off the following scenario:

I'm using c# to create a webbrowser for a specific use. When i'm using the webbrowser component in visual studio, i can use the following code:

C#
public void clickSubmit()
        {
            try
            {
                foreach (HtmlElement hem in WebBrowser1.document.all)
                {
                    if (hem.GetAttribute("id").Contains("login"))
                    {
                        hem.InvokeMember("Click");
                    }
                }
            }
            catch (NullReferenceException)
            {

            }
        }

I want to write a method that provides the same functionallity BUT FOR WEBKIT.

For example the webrowser1.document.all is not a property for webkit.

Can somebody help me out here and write a function that could work.

Thanks in advance,
D
[edit]code block added[/edit]
Posted
Updated 13-Nov-12 23:03pm
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