Welcome Guest Search | Active Topics | Sign In | Register

Click elements in webbrowser based on X, Y coordinates Options
jp3433
Posted: Monday, November 23, 2015 2:43:48 PM
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.
eo_support
Posted: Monday, November 23, 2015 3:19:40 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.