Seeking a DOM element using screen coordinates

Applying eValid to AJAX applications that require advanced DOM-based methods.

Seeking a DOM element using screen coordinates

Postby HazelD » Mon Sep 14, 2015 4:20 pm

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
HazelD
 
Posts: 1
Joined: Mon Sep 14, 2015 3:55 pm

Re: Seeking a DOM element using screen coordinates

Postby eValid » Tue Sep 15, 2015 10:31 am

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
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to AJAX Applications & DOM Processing

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons