Rank: Newbie Groups: Member
Joined: 11/23/2015 Posts: 1
|
I am trying to automated a web page that cannot be iterated by document elements. My approach is to use the WebControl1.WebView.Capture to capture the page to an image, then process with OCR. The OCR then outputs the X and Y values needed to click the button displayed in the browser. How can I invoke a click based on specific coordinates within the webview? This is my last sticking point before I can buy the full version of the product as I'm reluctant to as I have purchased other products in the past and been stuck on one problem that halts my work. Any help that could be provided would be much appreciated.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
The WebView does not have built-in support for that. However you should be able to use Windows API to send mouse message to the window to simulate a click. The only special thing is the window to which you should send the message is NOT the window handle you pass to WebView.Create. It is the first grand child window of that window.
Thanks!
|