SendMouseClickEvent how to get element coordinate?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

SendMouseClickEvent how to get element coordinate?

Postby bakanaev » Sun Nov 29, 2015 1:25 pm

Hello. Please help me)) i have a problem:
Web page have button, me need click to this button. I use SendMouseClickEvent, but it request element coordinate ( CefMouseEvent ). How get coordinate of button ? :?
bakanaev
Newbie
 
Posts: 1
Joined: Sun Nov 29, 2015 1:15 pm

Re: SendMouseClickEvent how to get element coordinate?

Postby amaitland » Sun Nov 29, 2015 6:56 pm

It's much easier to just invoke the button click using javascript than trying to locate and click it using the mouse.

https://bitbucket.org/chromiumembedded/ ... javascript

Either way you'll likely need some javascript to calculate the element position on the screen. (You should be able to Google that relatively easily)
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 44 guests