Mouse Drag - How to get the coordinates?

  • Автор темы Автор темы BlackSun
  • Дата начала Дата начала

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Реакции
3
Баллы
0
The mouse emulation is very useful but I'm wondering if there is any what to extract the coordinates of the object that needs to be moved?

For example, a list of moveable widgets on a page are in a random order. I can identify them by name but how would a get their coordinates to pass to the mouse emulation which would then drag them into the order I need them in?

So is there any easy way to return the x,y coordinates of a page element?
 
The mouse emulation is very useful but I'm wondering if there is any what to extract the coordinates of the object that needs to be moved?

For example, a list of moveable widgets on a page are in a random order. I can identify them by name but how would a get their coordinates to pass to the mouse emulation which would then drag them into the order I need them in?

So is there any easy way to return the x,y coordinates of a page element?

Try this one.

Посмотреть вложение pointposition.zip
 

OK thanks for the direct link.:p

Unfortunately its not what I'm looking for. I'm looking to have template identify the element by name and then return the x,y coordinates of the element. Of course it could use image recognition and from that return the coordinates.

If it can't be done at the moment, then maybe it could be considered as a feature for the future. :)
 
Also you can get top and left attributes via action designer like in HB's example.
But currently click emulation doesn't work properly.
There was minor bug.
It's solved now and fix will be released in next build.
 
Also you can get top and left attributes via action designer like in HB's example.
But currently click emulation doesn't work properly.
There was minor bug.
It's solved now and fix will be released in next build.

I guess some things have changed since 2012 - what's now the best option to identify object coordinates? I think it should to be in some visible place of action designer when we send a certain object for inspection.
 
you can use any firefox html attributes there
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)