he.DisplacementInDocument and he.DisplacementInTabWindow

enrc66

Client
Регистрация
12.10.2013
Сообщения
89
Благодарностей
8
Баллы
8
in cc
he.DisplacementInDocument always equal he.DisplacementInTabWindow
please check!
pm is ok
 

shade

Client
Регистрация
19.11.2010
Сообщения
580
Благодарностей
346
Баллы
63

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
786
Баллы
113
int x = int.Parse(instance.ActiveTab.FindElementByAttribute(....).GetAttribute("leftinbrowser"))
int y = int.Parse(instance.ActiveTab.FindElementByAttribute(....).GetAttribute("topinbrowser"))
you get the left up corner of element relative to maintab in pm and the same in zp
 
  • Спасибо
Реакции: enrc66

enrc66

Client
Регистрация
12.10.2013
Сообщения
89
Благодарностей
8
Баллы
8
int x = int.Parse(instance.ActiveTab.FindElementByAttribute(....).GetAttribute("leftinbrowser"))
int y = int.Parse(instance.ActiveTab.FindElementByAttribute(....).GetAttribute("topinbrowser"))
you get the left up corner of element relative to maintab in pm and the same in zp
thank you
that's could instead of DisplacementInDocument
 

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