Re: [webkit-dev] Interact with DOM Elements using WebKit
Hi, Following the C# code: view = new WebViewClass(); view.setHostWindow(this.panel1.Handle.ToInt32()); WebKit.tagRECT rect; rect.bottom = rect.top = rect.left = rect.right = 0; view.initWithFrame(rect, null, null); WebKit.WebURLRequestClass req = new WebKit.WebURLRequestClass(); req.initWithURL(http://login.live.com;, WebKit._WebURLRequestCachePolicy.WebURLRequestUseProtocolCachePolicy, 60); view.mainFrame().loadRequest(req); WebKit.IDOMHTMLInputElement element = (IDOMHTMLInputElement) view.mainFrameDocument().getElementById(i0116); element.setValue(username); element = (IDOMHTMLInputElement) view.mainFrameDocument().getElementById(i0118); element.setValue(password); element = (IDOMHTMLInputElement) view.mainFrameDocument().getElementById(i0011); // This statement throws the error. element.click(); I am new to WebKit let me know if my approach is correct? My goal is to browser website do some operations on it so that it would be helpful in testing. Thanks, Prema Arya ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
[webkit-dev] Interact with DOM Elements using WebKit
Hi, I was able to use webkit in my C# application on windows. I am able to load a page using loadRequest() method. Now i want to interact with elements on the page. I tried using getElementById() which returns the element. I was able to enter text in text boxes and change values of button. But when I click() the button it throws an error Access to right protected memory bascially AccessViolationException(). Is there a way I can click a button, link using WebKit? If yes, how? If no, is there any other alternative? I am using Windows XP SP2 with Visual Studio 2005. Thanks, Prema Arya ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Re: [webkit-dev] Interact with DOM Elements using WebKit
On Tue, Apr 21, 2009 at 3:34 AM, Prema Arya prema.a...@gmail.com wrote: Hi, I was able to use webkit in my C# application on windows. I am able to load a page using loadRequest() method. Now i want to interact with elements on the page. I tried using getElementById() which returns the element. I was able to enter text in text boxes and change values of button. But when I click() the button it throws an error Access to right protected memory bascially AccessViolationException(). Is there a way I can click a button, link using WebKit? If yes, how? If no, is there any other alternative? I am using Windows XP SP2 with Visual Studio 2005. Thanks, Prema Arya Prema, can you provide a code snippet (i.e. Javascript/CSS) that reproduces this error message? -Conrad ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev