Page 1 of 1

Seeking a DOM element using screen coordinates

PostPosted: Mon Sep 14, 2015 4:20 pm
by HazelD
Evening.

I have a known coordinate on the screen and I want to find out which DOM element that corresponds to that element...

Is this possible?

Thanks

Re: Seeking a DOM element using screen coordinates

PostPosted: Tue Sep 15, 2015 10:31 am
by eValid
HazelD wrote:Evening.

I have a known coordinate on the screen and I want to find out which DOM element that corresponds to that element...

Is this possible?

Thanks


Thanks for asking HazelD.

There is a workaround.

The xyLClick command specifies an x,y coordinate on the desktop at which eValid will issue a click command.

The format is as follows:

cLClick wid x y time [NAV]

where wid is the id of the current window, x and y are the offsets and time is the number of milliseconds to hold the left button down.

You'll want to add the optional NAV tag if you expect that left click to induce a page navigation.

If you program eValid to drop the click at that spot, when it does so it will record in the EventLog that a click was dropped at a particular location...and given that that DOM element is sensitive to a LeftClick then you'll see in the event log what DOM element it was that received the click...

-- eValid Support