Mouse Drag - How to get the coordinates?

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?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113
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
 

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0

BlackSun

Client
Регистрация
24.01.2011
Сообщения
119
Благодарностей
3
Баллы
0
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. :-)
 

Hungry Bulldozer

Moderator
Регистрация
12.01.2011
Сообщения
3 441
Благодарностей
831
Баллы
113

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
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.
 

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18
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.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113

krisztos

Client
Регистрация
28.06.2014
Сообщения
170
Благодарностей
8
Баллы
18
Are there any other interesting/useful attributes that are not listed in dropdown lists of action designer?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 180
Баллы
113

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 706
Баллы
113
you can use any firefox html attributes there
 

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